Toolbar
Buttons, toggles, menus and a field in one row that Tab reaches once and the arrow keys move through.
npx shadcn add https://kinoui.com/r/toolbar.jsonCopy install command
Examples
Default
A Toggle group, a group of buttons, a toggle, a menu and a field in one row. Each looks and moves as it does on its own.
With menus
A menu’s trigger renders a ToolbarButton, so it joins the arrow keys. Escape closes the menu and puts focus back on it.
Vertical
orientation="vertical" stacks the items, and the up and down arrows move between them. Give a Toggle group inside the same orientation.
Disabled and loading
A disabled button stays in the arrow keys’ path, so it can be found and read out. A loading button shows its spinner as a Button does.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/toolbar.json- Files
lib/refs.tslib/reduce-motion.tslib/resize.tslib/swap.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxlib/run-progress.tslib/highlight.tscomponents/kino/button-group.tsxlib/flow.tscomponents/kino/input.tsxcomponents/kino/separator.tsxcomponents/kino/toggle.tsxcomponents/kino/toolbar.tsx- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Toolbar
ToolbarButton
ToolbarToggle
ToolbarGroup
Data attributes
Accessibility
- The row has
role="toolbar": name it witharia-label. A vertical one hasaria-orientation="vertical". - Tab reaches the toolbar once; the arrow keys move between its items, and the next Tab leaves it.
- A disabled button, toggle or field stays focusable, with
aria-disabled, so it can be found and read out. A Toggle group’s disabled items leave the arrow keys’ path, as Base UI’s toggles do in any group. - An icon-only item needs an
aria-label, and a tooltip that shows it.