goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
21 lines • 708 B
TypeScript
import { ReactNode, FC } from 'react';
import { DrawerStyles } from '../../theme';
export interface DrawerProps {
/** Whether the drawer is open */
open?: boolean;
/** Callback fired when the drawer requests to be closed */
onClose?: () => void;
/** Which side the drawer opens from */
anchor?: 'left' | 'right' | 'top' | 'bottom';
/** The variant of the drawer */
variant?: 'permanent' | 'persistent' | 'temporary';
/** Drawer content */
children?: ReactNode;
/** Component styling */
styles?: DrawerStyles;
/** Additional props */
[key: string]: any;
}
declare const Drawer: FC<DrawerProps>;
export default Drawer;
//# sourceMappingURL=index.d.ts.map