UNPKG

kabulmark

Version:

A React-based rich text editor built as a wrapper over Meta's Lexical library.

18 lines (17 loc) 633 B
import { ToolbarConfig } from "./plugins/Toolbar"; import "./styles.css"; interface KabulMarkEditorProps { id?: string; error?: string; value?: string; placeholder?: string; className?: string; showHtmlOutput?: boolean; height?: string; showToolbar?: boolean; onChange?: (html: string) => void; toolbarConfig?: ToolbarConfig; } declare function KabulMarkEditor({ id, error, value, placeholder, className, showHtmlOutput, showToolbar, height, onChange, toolbarConfig }: KabulMarkEditorProps): import("react/jsx-runtime").JSX.Element; export default KabulMarkEditor; export { KabulMarkEditor };