# Group

> A connected control group primitive for buttons, inputs, separators, and text addons. Children join into one control with shared borders and rounded outer corners, horizontally or vertically; GroupText adds a text addon and GroupSeparator a divider.

- Author: [retab-dev](https://21st.dev/@retab-dev)
- License: mit
- Tags: Button Group, Input Group, Toolbar, Segmented Control, Base UI
- npm dependencies: @base-ui/react, class-variance-authority
- Live preview: https://21st.dev/@retab-dev/components/retab-group

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/retab-dev/retab-group?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/button-group.md
