UNPKG

editor-react-parser

Version:
27 lines (26 loc) 866 B
import React from "react"; import { BlockParserConfig, OutputBlockData, OutputData } from "../BlockParser"; /** * Output of the columns block * A column contains the same data structure of editorJs data and will call the BlockParser recursively * * This parser provides support for the @calumk/editorjs-columns block tool */ export type EditorJsColumns = { cols: OutputData[]; }; export type ColumnsConfig = { classNames?: { outerContainer?: string; innerBlocksContainers?: string; twoColumns?: string; threeColumns?: string; }; }; export interface ColumnsProps { item: OutputBlockData<EditorJsColumns>; config?: ColumnsConfig; blockRendererConfig?: BlockParserConfig; } declare const ColumnsBlock: ({ item, config, blockRendererConfig, }: ColumnsProps) => React.JSX.Element; export default ColumnsBlock;