import { HTMLAttributes } from 'react'; import { CardProps } from '../Card/types'; export interface DrawerProps extends Pick, 'className' | 'style'> { /** * If true, the component is shown. * @default false */ open?: boolean; /** * @default 'left' */ anchor?: 'left' | 'right'; /** * @default false */ swipeable?: boolean; /** * @default false */ hideBackdrop?: boolean; /** * Callback fired when the component is closed */ onClose?: () => void; onShow?: () => void; /** * Callback fired when the component is opened */ onOpen?: () => void; /** * @default 'mobile' */ variant?: 'mobile' | 'always' | 'static'; /** * @default 768 */ mobileThreshold?: number; children?: any; cardProps?: CardProps; }