UNPKG

@teamsparta/stack-custom-modal

Version:
25 lines (22 loc) 770 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ThemeName } from '@teamsparta/stack-tokens'; import { CustomModalSize } from './type.js'; interface CustomModalContext { open: boolean; onOpenChange: (open: boolean) => void; closeOnInteractOutside: boolean; size: CustomModalSize; theme: ThemeName; hasScroll: boolean; setHasScroll: (hasScroll: boolean) => void; hideCloseButton: boolean; } declare const CustomModalProvider: { (props: CustomModalContext & { children: react.ReactNode; }): react_jsx_runtime.JSX.Element; displayName: string; }; declare const useCustomModal: (consumerName: string) => CustomModalContext; export { CustomModalProvider, useCustomModal };