Skip to content
Navigation

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>

PropTypeDefaultDescription
orientation
"horizontal" | "vertical""horizontal"Layout orientation; also drives which arrow keys move focus.

ToolbarButtonProps

Extends ButtonHTMLAttributes<HTMLButtonElement>

PropTypeDefaultDescription
pressed
booleanToggle-button pressed state; reflected as aria-pressed.