@payfit/unity-components
Version:
18 lines (17 loc) • 650 B
TypeScript
import { TextProps } from '../../text/Text.js';
type TitleElements = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export type AlertTitleProps = Omit<TextProps, 'variant' | 'color' | 'className'> & {
/**
* The underlying HTML element to render the title as.
* @default 'h3'
*/
asElement?: TitleElements;
};
declare const AlertTitle: import('react').ForwardRefExoticComponent<Omit<TextProps, "color" | "className" | "variant"> & {
/**
* The underlying HTML element to render the title as.
* @default 'h3'
*/
asElement?: TitleElements;
} & import('react').RefAttributes<HTMLDivElement>>;
export { AlertTitle };