Button Group
Joins related buttons into one control.
@paneui/themeclass-variance-authority
Installation
pnpm dlx shadcn@latest add @paneui/button-groupUsage
Examples
Accessibility
The group has role="group"; give it an aria-label. For a set where one option is chosen, use ToggleGroup instead.
ButtonGroup
Also accepts every prop of div.
- orientation= "horizontal"
- "horizontal" | "vertical"
- Direction of the joined buttons.
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal" | "vertical" | "horizontal" | Direction of the joined buttons. |