UNPKG

editor-react-parser

Version:
46 lines (45 loc) 1.06 kB
import React from "react"; import { OutputBlockData } from "../BlockParser"; /** * Output of the alert block type */ export type EditorJsAlert = { type: AlertType; align: AlertAlignment; message: string; }; export declare enum AlertAlignment { left = "left", right = "right", center = "center" } export declare enum AlertType { info = "info", success = "success", danger = "danger", light = "light", dark = "dark", warning = "warning", primary = "primary" } export type AlertConfig = { classNames?: { baseElement?: string; info?: string; success?: string; danger?: string; light?: string; dark?: string; warning?: string; primary?: string; textCenter?: string; textRight?: string; textLeft?: string; }; }; export interface AlertProps { item: OutputBlockData<EditorJsAlert>; config?: AlertConfig; } declare const AlertBlock: ({ item, config }: AlertProps) => React.JSX.Element; export default AlertBlock;