Toolbar
An accessible button toolbar with roving focus and grouped controls.
Import
tsx
import { Toolbar, ToolbarButton, ToolbarSeparator, ToolbarGroup } from "@cooud-ui/ui";
bash
npx cooud-ui add toolbar
Examples
API Reference
Generated from the component's exported types.
ToolbarProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Layout orientation; also drives which arrow keys move focus. |
ToolbarButtonProps
Extends ButtonHTMLAttributes<HTMLButtonElement>
| Prop | Type | Default | Description |
|---|---|---|---|
pressed | boolean | — | Toggle-button pressed state; reflected as aria-pressed. |