UIComponentsReact
Buttons joined into one control.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/button-group.jsonIt also adds utils, separator. The app needs its setup first: Installation.
Usage
Put Buttons, an Input or a ButtonGroupText inside; the group joins their borders and corners. orientation="vertical" stacks them, and ButtonGroupSeparator divides two of them.
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from '@/components/ui/button-group'Examples
API reference
Button Group wraps no headless component of its own: its parts are elements with classes, and their props are the element's.