UNPKG

reablocks

Version:
25 lines (24 loc) 625 B
export interface DrawerContextValue { /** * Callback to close the drawer. */ onClose?: () => void; /** * Whether to show the close button. */ showCloseButton?: boolean; /** * Whether padding is disabled. */ disablePadding?: boolean; /** * ID for the heading element, used for aria-labelledby. */ headingId?: string; } export declare const DrawerContext: import('react').Context<DrawerContextValue>; /** * Hook to access the Drawer context. * Must be used within a Drawer component. */ export declare const useDrawerContext: () => DrawerContextValue;