editor-react-parser
Version:
A renderer for editorjs block data for react
23 lines (22 loc) • 546 B
TypeScript
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;