Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Button Group

Buttons joined into one control.

Rendered by React 19.3.1

button-group.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/button-group.json

It 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.