Add a Notion-style editor to your app in five minutes
blockcn installs as source code with one shadcn command. No SDK, no lock-in: the editor lives in your repo and you change it like any other component.
Three steps to a working editor
Works the same in Next.js (App Router) and React + Vite.
- 1
Init shadcn
Any Next.js or Vite app on Tailwind CSS v4 with a src/ directory and the @ alias.
npx shadcn@latest init - 2
Add the editor
Copies the editor source into src/ and installs Tiptap for you.
npx shadcn@latest add …/editor-shell.json - 3
Render it
useEditor() + <Editor />. Type / for blocks, select text for the toolbar.
<Editor editor={editor}>…</Editor>
Start small, add what you need
editor-shell is the text editor. Media, the whiteboard, export, tables, math, columns, mentions, a table of contents, Ask AI and collaboration are separate installs. Register each extension before it shows up.
Core blocks
Headings, lists, to-dos, quotes, callouts, toggles, highlighted code, slash menu, drag handle and outline.
Tables and media
Tables with a row/column toolbar, plus image, video, audio, file and link blocks.
Whiteboard and export
Excalidraw drawings inline, and one-click export to HTML or Markdown.
Ask AI
Rewrite, summarize and generate. Streams a preview, applies only on accept.
Collaboration
Real-time editing with Yjs and Hocuspocus, including presence and remote carets.
Example backend
One Express server for the AI endpoint and the collaboration socket.
You own every line
Files land in src/components/editor and src/editor-core. Rename, restyle, delete. Nothing is hidden in node_modules.
Matches your theme
The editor reads your shadcn CSS variables in light and dark mode, and its primitives stay out of your own components/ui.