# Button Group

> A container that groups related buttons together with consistent styling.

Source: https://ui.cortexcn.dev/docs/components/button-group

## Installation

```bash
npx shadcn@latest add @cortexcn/button-group
```

## Usage

```tsx
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "@/components/button-group";
```

## Examples

### Basic

### With input

### With text

### With dropdown

### With select

### With icons

### With input group

### With fields

### With like

### With select and input

### Nested

### Pagination

### Pagination split

### Navigation

### Text alignment

### Vertical

### Vertical nested

Adapted from the [shadcn/ui Button Group](https://ui.shadcn.com/docs/components/radix/button-group) (MIT).