Editor Rich Text Tiptap
Rich text editor with a toolbar, slash commands and mentions for notes, comments or documents.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Rich text editor with a toolbar, slash commands and mentions for notes, comments or documents.
- Tiptap editor in React with bubble menu, links, images, tables and Markdown export.
- WYSIWYG editor that exports Markdown and lets users insert blocks by typing a slash.
For a full document workspace with outline, templates and export formats, use Docs Editor Shell. For code editing with syntax highlighting, use Editor Code Codemirror.
Includes
- Rich text editing
- Tiptap
- Formatting toolbar
- Roving tabindex toolbar
- Bubble menu
- Slash commands
- Mentions
- Links
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add editor-rich-text-tiptapnpx shadcn@4.17.0 add @agentic-ui/editor-rich-text-tiptapUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
@tiptap/core@tiptap/extension-image@tiptap/extension-mention@tiptap/extension-table@tiptap/extensions@tiptap/pm@tiptap/react@tiptap/starter-kit@tiptap/suggestionlucide-react- Registry dependencies
lib-primitives- Files
12 files
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/editor-rich-text-tiptap.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/editor-models.ts
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/use-rich-editor.ts
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/markdown-model.ts
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/suggestion-store.ts
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/editor-extensions.ts
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/suggestion-list.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/selection-menu.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/link-bar.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/editor-toolbar.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/toolbar-items.tsx
- components/agentic-ui/editor-rich-text-tiptap/editor-rich-text-tiptap/editor-prose.ts
Related components
Editor Code Codemirror
Light code editor with a language switcher for TypeScript, JSON, CSS, Markdown and Python.
Details and live previewA11y Contrast Badge
Check in the browser whether the theme palette meets AA before opening the PR.
Details and live previewA11y Focus Manager
Confirmation dialog that returns focus to the button that opened it.
Details and live previewA11y Live Announcer
Announce the number of results when filtering a table without reloading the page.
Details and live preview