Drag Handle

A floating handle that reorders blocks, including the ones nested in lists and quotes.

UIrich-text-editor-drag-handleView JSON

The drag handle is a control, not an extension: it mounts its own plugin when it renders. Nested blocks such as list items and quoted paragraphs can be dragged on their own. If your project disables automatic peer dependency installation, install `@tiptap/extension-drag-handle` next to the React package.

Preview

Installation

Add the item with the shadcn CLI, or copy the source manually.

pnpm dlx shadcn@latest add litingyes/blocove/rich-text-editor-drag-handle

Requires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.

Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/rich-text-editor-drag-handle

Typography is provided by shadcn/typeset. Copy typeset.css next to your stylesheet, import it after Tailwind and add the .typeset-docs preset. See the Rich text editor setup.

API Reference

Props accepted by the exported components.

EditorDragHandle

Floating handle that reorders the block under the pointer. Render it inside the editor; it follows the pointer and hides when the document is read-only.

PropTypeDefault
classNamestring-