Rich text editor
CoreA lightweight editor with markdown shortcuts, a floating toolbar, a slash menu, and HTML and markdown output.
pnpm dlx shadcn@latest add https://wui.alann.works/r/rich-text-editor.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
value | string | — |
defaultValue | string | — |
defaultMarkdown | string | — |
onChange | (value: RichTextValue) => void | — |
onHistoryChange | (state: { canUndo: boolean; canRedo: boolean }) => void | — |
placeholder | string | — |
blockHint | string | — |
readOnly | boolean | — |
autoFocus | boolean | — |
className | string | — |
style | CSSProperties | — |