Skip to Content
Actions & Basics@hacline/ui/toolbar

Toolbar

Group multiple editing actions into a single arrow-navigated keyboard region.

Usage

Tab into the toolbar and navigate controls with arrow keys. ToolbarButton triggers immediate actions while Toggle tracks pressed state.

Use arrow keys to switch tools

Navigate focus across two toggle actions and a navigation link using Up/Down arrow keys.

Parts

PartDescription
ToolbarButton
A button in the toolbar. Arrow keys move between it and the toolbar's other items.
ToolbarGroup
A group of related items in the toolbar. disabled disables every item in it.
ToolbarInput
A text field. Arrows move its caret, and leave it only from the end they point at.
ToolbarLink
A link in the toolbar. Arrow keys move between it and the toolbar's other items.
ToolbarSeparator
A line between groups of items.

Props

Prop

Type

View UI SDK parts and state attributes.