@payfit/unity-components
Version:
21 lines (20 loc) • 816 B
TypeScript
import { HeadingProps } from 'react-aria-components/Heading';
export interface PopoverHeaderProps extends Omit<HeadingProps, 'className' | 'style' | 'children'> {
/**
* Title text to be displayed in the header and used as the Popover's label.
*/
title: string;
/**
* If true, the title will not be shown on the screen but will still be accessible to screen readers
* @default false
*/
isTitleSrOnly?: boolean;
/**
* Whether the popover can be dismissed with a close button.
* If true, a close button will be added to the header.
* @default false
*/
displayCloseButton?: boolean;
}
declare const PopoverHeader: import('react').ForwardRefExoticComponent<PopoverHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
export { PopoverHeader };