UNPKG

reablocks

Version:
25 lines (24 loc) 625 B
export interface DialogContextValue { /** * Callback to close the dialog. */ 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 DialogContext: import('react').Context<DialogContextValue>; /** * Hook to access the Dialog context. * Must be used within a Dialog component. */ export declare const useDialogContext: () => DialogContextValue;