Rich text editor

Core

A 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.json

API Reference

PropTypeDefault
valuestring—
defaultValuestring—
defaultMarkdownstring—
onChange(value: RichTextValue) => void—
onHistoryChange(state: { canUndo: boolean; canRedo: boolean }) => void—
placeholderstring—
blockHintstring—
readOnlyboolean—
autoFocusboolean—
classNamestring—
styleCSSProperties—
Categories
inputs
Dependencies
lucide-reactmotion