editorjs-form-builder
Version:
A notion like form builder
19 lines (18 loc) • 525 B
TypeScript
/// <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;