Components/Content/RichTextEditor
component

RichTextEditor

src/components/code.tsx

Import

import { RichTextEditor } from "@ossrandom/design-system";

Examples

Default

↗ Playground

API

extends BaseProps

PropType
value string
defaultValue string
placeholder string
toolbar "full" | "compact" | "inline" | "none"
slashMenu boolean
bubbleMenu boolean
mentionsSource (query: string) => Promise<readonly { id: string; label: string }[]>; readonly collab?: { readonly room: string
user required { id: string; name: string; color?: string } }; readonly minHeight?: number | string; readonly maxLength?: number; readonly readOnly?: boolean; readonly onChange?: (markdown: string) => void;