UNPKG

editorjs-form-builder

Version:
19 lines (18 loc) 525 B
/// <reference types="react" /> import EditorJS from "@editorjs/editorjs"; interface EditorProps { id: string; autofocus: boolean; editorRef: { current: EditorJS | null; }; initAction: (editor: EditorJS) => void; onChange: (data: any) => void; initialData: { id: string; type: string; data: {}; }[]; } declare const Editor: ({ id, autofocus, editorRef, initAction, onChange, initialData, }: EditorProps) => JSX.Element; export default Editor;