pnpm dlx shadcn@latest add @saturation-ui/button-groupTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { ButtonGroup } from "@/components/ui/button-group"<ButtonGroup>
<Button>Left</Button>
<Button>Middle</Button>
<Button>Right</Button>
</ButtonGroup>| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Button elements. |
orientation | "horizontal" | "vertical" | "horizontal" | Group orientation. |
Horizontal
Vertical