Toolbar

Actions

A row of controls with one Tab stop, moved through with arrow keys: <Toolbar.Root> holds Toolbar.Buttons, Toolbar.Links and Toolbar.Groups (type="single" or "multiple", bind:value) of Toolbar.GroupItems. A vertical Separator divides sections. Name it with aria-label.

import { Toolbar } from '@limerdev/zest';
Toolbar for AI tools (llms.txt)
Use for
Formatting and view controls above an editor, a table or a chart.
Don't
A page's main actions: use Buttons. Navigation: use links or NavigationMenu.

Examples

Basic

One Tab stop; arrow keys move through the controls. A vertical Separator divides sections.

Props

Every part also takes class (merged over its defaults), ref (bindable: the element), children, and child (a snippet that renders your own element, with props to spread on it).

Toolbar.Root

Prop Type Default Description
loop boolean true Whether or not to loop through the toolbar items when navigating with the keyboard.
orientation "horizontal" | "vertical" "horizontal" The orientation of the toolbar. This determines how keyboard navigation will work within the toolbar.

Toolbar.Button

Prop Type Default Description
disabled null | false | true – Whether the button is disabled or not.

No props of its own beyond the common ones.

Toolbar.Group

Prop Type Default Description
disabled boolean false Whether the toggle group is disabled or not.
onValueChange OnChangeFn<string> | OnChangeFn<string[]> –
type required "multiple" | "single" –
value bindable string | string[] –

Toolbar.GroupItem

Prop Type Default Description
disabled null | false | true false Whether the toggle item is disabled or not.
value required string – The value of the toggle item.