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

Interface ModalEventProps

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

Source from the content-addressed store, hash-verified

39}
40
41export interface ModalEventProps {
42 open: boolean;
43 title: string | HTMLElement;
44 content: string | HTMLElement;
45 attributes: Record<string, any>;
46 close: () => void;
47}
48
49const ModalProvider = memo(function ({ children }: ModalProviderProps) {
50 const { editor } = useEditorInstance();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected