@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
18 lines (16 loc) • 498 B
TypeScript
interface ModalContextValue {
open: boolean;
defaultOpen: boolean;
keepMounted: boolean;
closeOnInteractOutside: boolean;
setOpen: (open: boolean) => void;
container?: Element | null | (() => Element | null);
onOpenChange?: (open: boolean) => void;
'aria-labelledby'?: string;
'aria-describedby'?: string;
preventScroll: boolean;
closeOnEscape: boolean;
restoreFocus: boolean;
}
declare const useModal: () => ModalContextValue;
export { useModal };