A set of controls that is one tab stop, the arrows moving between them, nested ToggleGroups included (the APG toolbar), in each framework.
A container for a set of controls that is one tab stop, with the arrow keys moving between
them (WAI-ARIA APG toolbar pattern): buttons,
links, a text input, and Toggles and ToggleGroups,
whose toggles become the toolbar's own items.
One tab stop: exactly one item has tabindex="0": the first one that can take focus, then
the one that last had focus. Tab enters the toolbar there and leaves it at once.
Arrows: ArrowRight and ArrowLeft in a horizontal toolbar (mirrored in RTL), ArrowDown and
ArrowUp in a vertical one, Home and End, through every item in document order, wrapping with
loopFocus. The other orientation's arrows are left to the controls.
Nested composites: a ToggleGroup inside a Toolbar opens no focus of its own; its toggles
register with the toolbar, which stays one tab stop. A Toggle placed directly in the toolbar is
an item too. A Toolbar.Group only groups its items (and disables them with disabled).
Disabled items: a disabled Button or Input is skipped by the arrows (the APG's "typically
not focusable"); with focusableWhenDisabled it is aria-disabled and reachable, and ignores
presses (an Input is also readonly).
Text input: a Toolbar.Input keeps its caret keys: the arrows move the focus out only when
the caret is at the text's edge in their direction and nothing is selected, Home and End only
when it is empty. The toolbar's keys select its whole text when they move the focus to it.
Name: the toolbar is a role="toolbar"; name it with aria-label or aria-labelledby.
Every part also takes what the primitive contract gives:
render (Vue: as and the render slot), a class and a style, a ref, and any attribute, which
it forwards. Vue and Angular take the click, pointer, key and focus listeners as native events
(@click, (click)).