Back to Components
Inputs

Rich Text Input

Simple rich text input with bold, italic, and link toolbar using contenteditable.

Dependencies

  • clsx
  • tailwind-merge
  • lucide-react

Files

  • components/ui/rich-text-input.tsx

Installation

Using shadcn CLI

npx shadcn add rich-text-input --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge lucide-react