hp-toolbar
Toolbar container with managed keyboard navigation. Slotted focusable children
(hp-button, hp-toggle, hp-checkbox,
hp-link, etc.) participate in a roving tabindex — Tab enters at the
currently-active child, arrow keys move between siblings, Home / End jump to first /
last. hp-separator children break the visual flow without consuming a
tab stop.
Install
bun add @hexpunk/core lit import "@hexpunk/core"; Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
orientation | orientation | "horizontal" | "vertical" | "horizontal" | Layout direction — controls which arrow keys move focus. |
Slots
| Slot | Description |
|---|---|
(default) | Toolbar controls (hp-button, hp-toggle, hp-checkbox, hp-separator, etc.) |
Accessibility
role="toolbar" + aria-orientation. Roving tabindex: one
focusable child has tabindex="0", the rest tabindex="-1".
Arrow keys navigate; Tab moves out of the toolbar (the next focusable element on
the page).
No per-component entries in CHANGELOG.md yet.