Optional ReadonlyariaOptional ReadonlyblockOptional ReadonlyblockBlock formats offered by the format select.
Optional ReadonlycodeJSON/XML formatting, from @trevixal/extension-format-code. The matching
buttons are skipped when absent.
Optional ReadonlyextraOptional ReadonlyfontOptional ReadonlyfontOptional ReadonlyformatCurrent painter state, for the button's appearance and tooltip. Armed state lives in the painter rather than the document, so the toolbar cannot read it from a snapshot.
Optional ReadonlygroupGroup names to render, in this order. Omit for every group. Lets a host
pick categories, groupNames: ['marks', 'lists'] for a compact bar.
Optional ReadonlygroupThe order to show the groups in, by name, typically what onReorder
last reported. Unlike groupNames it hides nothing: groups it does not
mention follow in their default order, and names that match no group are
ignored, so a remembered order survives a group being added or removed.
Optional ReadonlygroupsOptional ReadonlyitemsFlat item list (legacy shape) or grouped rows.
Optional ReadonlyletterOptional ReadonlylineOptional ReadonlymessagesTranslations, keyed toolbar.<item name> and toolbar.group.<name>,
with .aria for an accessible name that differs from the label. Anything
missing keeps its English; see defaultMessages.
Optional ReadonlyonOpens the command palette.
Optional ReadonlyonCopy the code block at the selection; from the code-highlight package.
Optional ReadonlyonOpens an emoji picker.
Optional ReadonlyonOpens the find-and-replace bar.
Optional ReadonlyonArms the format painter; supplied by a host holding a FormatPainter.
Optional ReadonlyonCalled by the image button; supply a picker or dialog.
Optional ReadonlyonCalled by the table grid with the chosen dimensions.
Optional ReadonlyonCalled by the link button; supply a dialog.
Optional ReadonlyonCalled with the new group order whenever the user rearranges the bar.
Optional ReadonlyonOpens a special-character picker.
Optional ReadonlyonToggles focus mode.
Optional ReadonlyonToggles fullscreen.
Optional ReadonlyonToggles the document-outline panel.
Optional ReadonlyonToggles the table-of-contents panel.
Optional ReadonlyonShows the word-count readout.
Optional ReadonlyparagraphOptional ReadonlyreorderableGive every group a grip that drags it to a new place in the bar, the
Office toolbar convention. From the keyboard, Space on the grip picks the
group up and the arrow keys move it. Each new order is reported through
onReorder.
Advanced-block commands, supplied by the host so this package does not depend on
@trevixal/extension-blocks. PassblockUICommands()from that package. Theblocksgroup is skipped when this is absent.