UNPKG

@naturacosmeticos/natds-react

Version:
35 lines (34 loc) 802 B
/// <reference types="react" /> export declare type DrawerSize = 'small' | 'medium' | 'large'; export declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom'; export interface DrawerProps { /** * The content of Drawer */ children: React.ReactNode; /** * Override or extend the styles applied to the component */ className?: string; /** * Whether the Drawer is opened or not */ open: boolean; /** * Whether the Drawer is opened use to close in overlay */ handleClick?: () => void; /** * The Drawer's width size * @default small */ size?: DrawerSize; /** * Optional ID for testing */ testID?: string; /** * Optional position prop */ position?: DrawerPosition; }