List

Bullet, ordered and task lists with toolbar toggles and typeset-aware styling.

UIrich-text-editor-listView JSON

A list node is only valid together with its item node, so each component registers both. Declaring two of them is safe: the shared item node and keymap are registered once.

Preview

Installation

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

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

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-list

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.

EditorBulletList

Registers the bullet list, its item node and the list keymap.

This component accepts no custom props.

EditorOrderedList

Registers the ordered list, its item node and the list keymap.

This component accepts no custom props.

EditorTaskList

Registers the task list and its checkable item, styled through the typeset task list rules.

This component accepts no custom props.

EditorListToolbar

Toolbar toggles for the bullet, ordered and task list nodes.

PropTypeDefault
classNamestring-