UNPKG

editor-react-parser

Version:
33 lines (32 loc) 771 B
import React from "react"; import { OutputBlockData } from "../BlockParser"; /** * Output of a quote block */ export type EditorJsQuote = { text: string; caption: string; alignment: QuoteAlignment; }; export declare enum QuoteAlignment { left = "left", center = "center", right = "right", justify = "justify" } export type QuoteConfig = { classNames: { alignCenter?: string; alignRight?: string; alignLeft?: string; alignJustify?: string; quote?: string; caption?: string; }; }; export interface QuoteProps { item: OutputBlockData<EditorJsQuote>; config?: QuoteConfig; } declare const QuoteBlock: ({ item, config }: QuoteProps) => React.JSX.Element; export default QuoteBlock;