Get StartedComponentsStylingThemingMath & Science
MCP

Forms

Rich Text Editor

A rich text editor with no Tiptap dependency: contentEditable, toolbar and HTML sanitizing.

Markdown

Import

tsx
import { RichTextEditor } from "@indoku/ui"

Examples

Basic usage

(HTML keluaran muncul di sini)

Props

Root

PropTypeDefaultDescription
valuestring–
defaultValuestring–
onChange(html: string) => void–
placeholderstring–
editableboolean–
sanitizebooleantrueSanitize incoming HTML (value and paste).

Control

PropTypeDefaultDescription
label*string–
activeboolean–
onRun*() => void–

Content

PropTypeDefaultDescription
placeholderstring–

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev