Table
Tables with toolbar controls to insert, extend and remove rows and columns.
Preview
Installation
Add the item with the shadcn CLI, or copy the source manually.
pnpm dlx shadcn@latest add litingyes/blocove/rich-text-editor-tableRequires 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-table
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.
EditorTable
Registers the table kit (table, row, header and cell nodes). Options pass through to the kit.
| Prop | Type | Default |
|---|---|---|
...options | Partial<TableKitOptions> | - |
EditorTableToolbar
Table menu with insert, add/remove row and column, and delete table commands. Commands are disabled when the current selection cannot run them.
| Prop | Type | Default |
|---|---|---|
className | string | - |