@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
20 lines • 673 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
/**
* A title that labels the toast.
* Renders an `<h2>` element.
*
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
*/
export declare const ToastTitle: React.ForwardRefExoticComponent<ToastTitleProps & React.RefAttributes<HTMLHeadingElement>>;
export interface ToastTitleState {
/**
* The type of the toast.
*/
type: string | undefined;
}
export interface ToastTitleProps extends BaseUIComponentProps<'h2', ToastTitle.State> {}
export declare namespace ToastTitle {
type State = ToastTitleState;
type Props = ToastTitleProps;
}