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.jsonpnpm dlx shadcn@latest add https://jt-components.vercel.app/r/tiptap.jsonyarn dlx shadcn@latest add https://jt-components.vercel.app/r/tiptap.jsonbunx --bun shadcn@latest add https://jt-components.vercel.app/r/tiptap.jsonUsage
import Tiptap from "@/components/tiptap"<Tiptap
content="<p>Initial content...</p>"
onChange={(content) => console.log(content)}
/>Source Code
Loading component...
Props
| Prop | Type | Default |
|---|---|---|
onChange? | ((content: string) => void) | - |
showBubbleMenu? | boolean | true |
showFixedMenu? | boolean | true |
content? | string | "" |
Last updated on