Skip to content

Interface: ToolbarItem ​

One button in a toolbar.

Properties ​

PropertyTypeDescription
command() => CommandFactory for the command the button runs.
group?stringItems with the same group sit together; render a separator where it changes.
idstringUnique within the toolbar.
isActive?(editor) => booleanMakes the button a toggle with aria-pressed.
labelstringAccessible name, also used in the tooltip.
shortcut?stringProseMirror-style shortcut, e.g. Mod-b. Announced via aria-keyshortcuts.