Rich Text Editor

A reusable, customizable, production-ready Rich Text Editor component. Features slash commands, markdown support, bubble menus, and rich formatting powered by Tiptap.

data-input Premium Plan

Availability

Included in Premium Plans

This flagship component is part of Future UI's monthly & yearly Premium plans and is not distributed via the free public CLI.

Import

import { RichTextEditor } from "@/components/ui/rich-text-editor"
Layout Variant
Color Theme

Named Keys & Props

Pass these exact named keys as props on <RichTextEditor />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"default""minimal""writing""enterprise""glass"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"

Usage Example

A basic implementation example to get you started.

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

export default function Example() {
 return (
 <div className="w-full max-w-3xl mx-auto h-125">
 <RichTextEditor 
 variant="default"
 content="<h1>Welcome</h1><p>Type / for commands</p>"
 />
 </div>
 );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Slash Commands (type"/"to open formatting menu).
  • ◆Bubble Menu for quick formatting of selected text.
  • ◆Markdown shortcuts (e.g.,"#"for H1,"-"for bullet list).
  • ◆Support for Tables, Images, Task Lists, Quotes, and Code Blocks.
  • ◆Fully customizable Toolbar and Extensions.
  • ◆Multiple visual variants: Default, Minimal, Writing, Enterprise, Glass.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Plan: Included in Future UI Monthly & Yearly Premium Plans.
  • ◆Usage: Use the <RichTextEditor /> component as a drop-in replacement for standard textareas.
  • ◆Customization: Pass custom Tiptap extensions via the extensions prop.