UI.MD

Rich Text Editor

A rich text editor built on Tiptap with bold, italic, and link support.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/rich-text-editor.json

Usage

import { RichTextEditor } from "@/components/ui/rich-text-editor"

Examples

Default

API Reference

PropTypeDefaultDescription
value*string-The editor content as an HTML string.
onChange*(value: string) => void-Called with the updated HTML string on every edit.
onBlur() => void-Called when the editor loses focus.
placeholderstring-Placeholder text shown when the editor is empty.
classNamestring-Extra classes for the editor's outer container.