Overview
A named grouping of related controls that implements the WAI-ARIA toolbar pattern with roving tabindex.
Usage
Horizontal toolbars wrap groups by default so constrained containers do not
overlap controls. Each Toolbar.Group keeps its controls together until the
toolbar's narrow container query wraps controls inside the group. A named
Toolbar.Group gets role="group" by default; pass an explicit role when a
different semantic grouping is required.
When to use
- Rendering a row or column of related controls where the whole set should be one Tab stop and arrow keys should move between items.
- Wrapping existing cinder controls such as Button, SegmentedControl, and NumberInput without adding toolbar-specific child APIs.
- Building a static flex row of controls that should remain in ordinary Tab order — use inline, cluster, or button-group instead.
Examples
Basic toolbar
A named action bar that turns several controls into one Tab stop.
Vertical toolbar
Vertical orientation swaps the roving axis to Up and Down.
Toolbar with groups
Adjacent groups keep related controls together while the toolbar wraps.
Toolbar with spacer
Toolbar.Spacer pushes utility actions to the far edge.
Props
| Name | Type | Default | Required | Bindable | Description |
|---|---|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction for roving-key ownership and vertical group separator placement. | ||
children | snippet | req | Controls rendered inside the toolbar. | ||
onkeydown | unknown | req | |||
onfocusin | unknown | req | |||
role | unknown | req |