UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

32 lines (31 loc) 880 B
/// <reference types="react" /> export interface ModalContextType { parentSelector?: () => HTMLElement; ariaHideApp?: boolean; } export declare const ModalContext: React.Context<ModalContextType>; export interface ModalProps { /** * Modal open/close state, typically the state from `useState` in your component. */ isOpen: boolean; /** * Callback to invoke when closing of the modal is requested. * * Example modal close requests: * - Clicking the close button * - Hitting `ESC` on the keyboard * - Clicking outside of the modal */ closeModal: () => void; /** * Additional class name(s) to pass to the modal root DOM node. Optional. */ className?: string; /** * Modal content. */ children?: React.ReactNode; } declare const Modal: React.FC<ModalProps>; export default Modal;