# ButtonGroup

Visually connects related actions into one compact control. Use it when actions share the same context or form a small toolbar.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-buttongroup--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/button-group), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=18672-217548)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### ButtonGroup

| Variant | Values | Default |
| --- | --- | --- |
| `orientation` | `horizontal`, `vertical` | `horizontal` |

Also takes the attributes of the HTML element it renders.

### ButtonGroupSeparator

Also takes the props of `@base-ui/react/separator`.

### ButtonGroupText

Also takes the attributes of the HTML element it renders.

### Also exported

- `buttonGroupVariants` (variants)
