UNPKG

editor-react-parser

Version:
23 lines (22 loc) 546 B
import React from "react"; import { OutputBlockData } from "../BlockParser"; /** * Output of a table block */ export type EditorJsTable = { withHeadings: boolean; content: Array<string[]>; }; export type TableConfig = { classNames: { tableHeader?: string; tableData?: string; table?: string; }; }; export interface TableProps { item: OutputBlockData<EditorJsTable>; config?: TableConfig; } declare const TableBlock: ({ item, config }: TableProps) => React.JSX.Element; export default TableBlock;