Button group: Vertical
orientation="vertical" stacks the segments. Separators turn horizontal automatically.
100%
This adds the example as components/examples/button-group/vertical.tsx, together with the Button group component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/button-group-vertical.jsonTo add only the component, follow the Button group installation.
Props in this example
The Button group props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" |
Every prop is in the Button group API reference.
- Sizes
- Split button
- Separators
- Feedback inside a group
- Nested groups
- With text and an input
- Disabled and invalid
- Full width
- As a fieldset
- Right to left
See them all, with keyboard support and accessibility notes, on the Button group page.
- SeparatorA hairline that divides content horizontally or vertically, with an optional label and a decorative mode for purely visual lines.
- ButtonButtons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- ToggleA button that stays on or off, with a fill that settles in when pressed, a clear hover-to-on step and icons that can fill with the state.
- Toggle groupA row of toggles for one choice or many, with a fill that slides to the picked item, joined or spaced items and arrow-key focus.