import { ReactElement } from 'react'; export interface DrawerProps { children: ReactElement; side?: 'left' | 'right'; allowEventBubbling?: boolean; themeOverlay?: string; themeContent?: string; accessibleTitle?: string; accessibleDescription?: string; onExit?: () => void; } /** * An accessible drawer implemented based on modal component. * * This drawer *traps focus within it*. You should be aware of that, because it * can sometimes introduce a hurdle when integrating the drawer with other * things, especially third-party libraries. But it's an essential UX feature. */ declare function Drawer({ children, side, allowEventBubbling, themeOverlay, themeContent, accessibleTitle, accessibleDescription, onExit }: DrawerProps): ReactElement; declare namespace Drawer { var propTypes: { /** * The content of the drawer */ children: any; /** * The side of the drawer. Could be `left` or `right` */ side: any; /** * We stop propagation on clicks by default to enable more intuitive * operation with React Portals. If you need click events to bubble up * to parent components, set this prop to true */ allowEventBubbling: any; /** * Additional class name for the overlay, * along with the existing classes `fixed top bottom left right bg-darken50` */ themeOverlay: any; /** * Additional class name for the content, * along with the existing classes `overflow-auto scroll-styled fixed top bottom` */ themeContent: any; /** * An accessible title for the drawer, used by screen readers */ accessibleTitle: any; /** * An accessible description for the drawer, used by screen readers */ accessibleDescription: any; /** * The callback function when the drawer is exited by clicking the overlay */ onExit: any; }; } export default Drawer;