Tori Bryan

Rich Text Editor

Component 1

About

A WYSIWYG text editor with a formatting toolbar for headings, bold, italic, lists, quotes and links, supporting Markdown-style shortcuts and an optional character limit.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rich Text Editor to your project and fits it to your theme.

Code

How Rich Text Editor is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

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

export default function RichTextEditorDemo() {
  return (
    <div className="flex w-full max-w-xl flex-col gap-2">
      <RichTextEditor
        label="Editor"
        placeholder="Write something…"
        defaultValue="<p>Write your <strong>release notes</strong> here.</p>"
      />
    </div>
  );
}

Dependencies

More by Tori Bryan

View all
  • Portfolio Banner

    Portfolio Banner

    34
  • Token Flow

    Token Flow

    29
  • Annotated Text

    Annotated Text

    15
  • Chat Composer

    Chat Composer

    1
  • Count

    Count

  • Reactions

    Reactions

  • Pixel snail

    Pixel snail

  • Integration Orbit

    Integration Orbit