ComponentServer-safe

Button Group

Connects related actions into one compact control surface.

Installation

Preview

Usage

tsx
import { Button } from "@/components/ui/button"
import { ButtonGroup } from "@/components/ui/button-group"

<ButtonGroup>
  <Button variant="outline">Month</Button>
  <Button variant="outline">Week</Button>
  <Button variant="outline">Day</Button>
</ButtonGroup>

API reference

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Sets the direction and connected edge geometry.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.