RichTextEditor.
ContentEditable rich writing with bold, italic, underline, lists and links.
0 HTML characters
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
initialText | string | No | "" | — | Initial plain-text content. |
onChange | (html: string) => void | No | — | — | Returns edited HTML; sanitize before storing or rendering. |
label | string | No | Rich text editor | — | Accessible editable region name. |
placeholder | string | No | Write something… | — | Instruction when empty. |
disabled | boolean | No | false | true · false | Make content read-only. |
className | string | No | — | — | Additional CSS class on the outer component element. |