Toolbar
layoutsA horizontal action bar with one tab stop and arrow-key roving focus that folds data-overflow children into a … menu when it gets narrow.
File manager actions
Drag the preview edge: under collapseBelow="34rem" New folder and every icon action hide and the … Menu offers them as items.
Density and grouping
density="compact" halves the gap; vertical Dividers split groups without breaking the single tab stop.
density="default"
density="compact"
Labels collapse with the bar width
The bar is an inline-size query container: an @container rule hides button labels under 30rem, before anything overflows.
Roving focus
Tab into the bar once, then ← → Home End move between controls, skipping disabled ones; roving={false} drops role="toolbar" and leaves one tab stop per control.
Tab Left arrow Right arrow Home End
roving={false}
Sticky over a scrolling list
sticky pins the bar at stickyOffset while the list scrolls under it.
- api-gateway eu-west-1
- worker-02 eu-west-1
- cache-01 us-east-1
- postgres-primary eu-west-1
- media-transcode ap-northeast-1
- search-index us-east-1
- api-gateway eu-west-1
- worker-02 eu-west-1
- cache-01 us-east-1
- postgres-primary eu-west-1
- media-transcode ap-northeast-1
- search-index us-east-1
- api-gateway eu-west-1
- worker-02 eu-west-1
- cache-01 us-east-1
- postgres-primary eu-west-1
- media-transcode ap-northeast-1
- search-index us-east-1
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children required | Snippet | — | |
items | MenuItem[] | — | Menu rows standing in for the collapsed `data-overflow` children. |
overflow | Snippet | — | Free-form panel content instead of `items`. |
collapseBelow | string | — | Width (px/em/rem) under which `data-overflow` children collapse. |
sticky | boolean | false | |
stickyOffset | string | '0px' | |
density | 'compact' | 'default' | 'default' | |
overflowLabel | string | 'More' | |
label | string | — | Accessible name of the bar (`role="toolbar"`). |
roving | boolean | true | Roving tabindex: the bar is one tab stop and ←/→ (plus Home/End) move between its controls. `false` drops `role="toolbar"` along with the keyboard contract it promises, leaving children as ordinary tab stops. |
class | string | '' | |
style | string | '' |