<RichTextEditor user={() => {}} />
RichTextEditor
src/components/code.tsx
Import
import { RichTextEditor } from "@ossrandom/design-system";
Examples
API
extends BaseProps
| Prop | Type |
|---|---|
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; |