Interface: ToolbarItem
One button in a toolbar.
Properties
| Property | Type | Description |
|---|---|---|
command | () => Command | Factory for the command the button runs. |
group? | string | Items with the same group sit together; render a separator where it changes. |
id | string | Unique within the toolbar. |
isActive? | (editor) => boolean | Makes the button a toggle with aria-pressed. |
label | string | Accessible name, also used in the tooltip. |
shortcut? | string | ProseMirror-style shortcut, e.g. Mod-b. Announced via aria-keyshortcuts. |