
Bulk Action Bar
Menus
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/editor-toolbarA rich-text formatting toolbar: undo/redo, a block menu that previews each style, bold/italic/underline/strike/code toggles, link, a highlighter with swatches, lists and alignment, with tooltips naming every shortcut. Groups fold into a More menu as it narrows. Editor-agnostic: pass state, handle onAction with Tiptap, Lexical or your own. Base UI Toolbar with roving arrow keys.
Other props pass through to the root element.
state*
EditorToolbarState
onAction*
(action: EditorToolbarAction) => void
highlights
{ name: string; color: string }[]
Default HIGHLIGHTS
Highlight swatches. Defaults to six soft marker colors.
| Prop | Type | Default | Description |
|---|---|---|---|
| state* | EditorToolbarState | – | |
| onAction* | (action: EditorToolbarAction) => void | – | |
| highlights | { name: string; color: string }[] | HIGHLIGHTS | Highlight swatches. Defaults to six soft marker colors. |