Toolbar
A toolbar container with roving keyboard focus, accessible naming, and cross-axis separators.
Groups related action controls into a single keyboard-roving toolbar with an accessible name and cross-axis separators.
Preview
Section titled “Preview” Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
Installation
Section titled “Installation”Available starting in 0.3.0-rc.1 and later releases.
Compose Root, Button, and Separator:
- Focus and navigation:
Rootmanagesdisabled,orientation,loop, anda11yLabel. Only one enabled command participates in normalTaborder, while arrow keys move focus across buttons inside the toolbar. - Actions and separators: Activating an enabled
Buttonemits anactionevent carrying itsvalue;Separatorautomatically aligns along the cross axis.
| Prop | Type | Default |
|---|---|---|
disabled | boolean | false |
orientation | 'horizontal' 'vertical' | horizontal |
loop | boolean | true |
a11yLabel | string | '' |
Part Props
Section titled “Part Props”- Button:
disabled(defaultfalse),value(default''). - Separator: No additional props.