Built on Tiptap · styled by your shadcn theme

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. 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. 2

    Add the editor

    Copies the editor source into src/ and installs Tiptap for you.

    npx shadcn@latest add …/editor-shell.json
  3. 3

    Render it

    useEditor() + <Editor />. Type / for blocks, select text for the toolbar.

    <Editor editor={editor}>…</Editor>

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.