MCPcopy Create free account
hub / github.com/GrapesJS/react / ModalState

Interface ModalState

packages/grapesjs-react/src/ModalProvider.tsx:8–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import { WrapDom } from './utils/react';
7
8export interface ModalState {
9 /**
10 * Modal title
11 */
12 title: ReactElement<any>;
13
14 /**
15 * Modal content
16 */
17 content: ReactElement<any>;
18
19 /**
20 * Modal attributes
21 */
22 attributes: Record<string, any>;
23
24 /**
25 * Callback for closing the modal
26 */
27 close: () => void;
28}
29
30export interface ModalResultProps extends ModalState {
31 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected