Rich Text Toolbar

Formatting toolbar with bold and italic toggles, link, bullet and numbered list buttons, and a divider. Uses role toolbar with labelled icon toggles in React.

src/registry/ui/rich-text-toolbar.tsx/r/rich-text-toolbar.json

Installation#

bash
npx shadcn@latest add @minidev/rich-text-toolbar

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/rich-text-toolbar.json

Usage#

tsx
import { RichTextToolbar } from "@/components/ui/rich-text-toolbar"

export function Example() {
  return (
    <RichTextToolbar />
  )
}

API reference#

RichTextToolbar props
PropTypeDefault
classNamestring-

Dependencies#

npm

lucide-react

Examples#

All form components