WYSIWYG Editor

A rich text editor built with Tiptap, featuring a customizable toolbar, bubble menu, and code blocks with syntax highlighting

Preview

Installation

Install the tiptap editor
npx shadcn@latest add https://jt-components.vercel.app/r/tiptap.json
pnpm dlx shadcn@latest add https://jt-components.vercel.app/r/tiptap.json
yarn dlx shadcn@latest add https://jt-components.vercel.app/r/tiptap.json
bunx --bun shadcn@latest add https://jt-components.vercel.app/r/tiptap.json

Usage

import Tiptap from "@/components/tiptap"
<Tiptap 
  content="<p>Initial content...</p>"
  onChange={(content) => console.log(content)}
/>

Source Code

Loading component...

Props

PropTypeDefault
onChange?
((content: string) => void)
-
showBubbleMenu?
boolean
true
showFixedMenu?
boolean
true
content?
string
""

Last updated on