RichTextEditor
The RichTextEditor component allows users to edit content in Markdown format.
Playground
Props
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes. |
color | ThemeColor | 'black' | Sets the accent color. |
defaultValue | string | - | Initial markdown content. |
disabled | boolean | false | Disables editing (read-only mode). |
fixedSize | boolean | false | Disables vertical resizing. |
focused | boolean | false | Applies focused style. |
hovered | boolean | false | Applies hovered style. |
loading | boolean | false | Shows loading state. |
onChange | (val) => void | - | Callback when content changes. |
placeholder | string | - | Placeholder text. |
readOnly | boolean | false | Renders content in viewer mode. |
size | ThemeSize | - | Sets the size of the editor. |
value | string | '' | Controlled markdown content. |
Last updated on