# Shadcn Button Group Components

A container that groups related buttons together with consistent styling. The variants fit naturally into codebases using Radix UI or Base UI.

- Page: https://shadcnuikit.com/components/button-group
- Variants: 20 (20 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Variant 1](https://shadcnuikit.com/components/button-group/1) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group1`)
- [Variant 2](https://shadcnuikit.com/components/button-group/2) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group2`)
- [Variant 3](https://shadcnuikit.com/components/button-group/3) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group3`)
- [Variant 4](https://shadcnuikit.com/components/button-group/4) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group4`)
- [Variant 5](https://shadcnuikit.com/components/button-group/5) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group5`)
- [Variant 6](https://shadcnuikit.com/components/button-group/6) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group6`)
- [Variant 7](https://shadcnuikit.com/components/button-group/7) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group7`)
- [Variant 8](https://shadcnuikit.com/components/button-group/8) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group8`)
- [Variant 9](https://shadcnuikit.com/components/button-group/9) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group9`)
- [Variant 10](https://shadcnuikit.com/components/button-group/10) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group10`)
- [Variant 11](https://shadcnuikit.com/components/button-group/11) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group11`)
- [Variant 12](https://shadcnuikit.com/components/button-group/12) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group12`)
- [Variant 13](https://shadcnuikit.com/components/button-group/13) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group13`)
- [Variant 14](https://shadcnuikit.com/components/button-group/14) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group14`)
- [Variant 15](https://shadcnuikit.com/components/button-group/15) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group15`)
- [Variant 16](https://shadcnuikit.com/components/button-group/16) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group16`)
- [Variant 17](https://shadcnuikit.com/components/button-group/17) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group17`)
- [Variant 18](https://shadcnuikit.com/components/button-group/18) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group18`)
- [Variant 19](https://shadcnuikit.com/components/button-group/19) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group19`)
- [Variant 20](https://shadcnuikit.com/components/button-group/20) (Free, install: `npx shadcn@latest add @shadcnuikit/button-group20`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)