# ButtonGroup

A container for grouping buttons with consistent spacing. Extends `Space` and inherits all its defaults.

## When to Use

- Grouping related actions (Save/Cancel)
- Button bars and toolbars

## Properties

Inherits all Space properties.

### Style Defaults

Inherits Space defaults:

- `display` — `flex`
- `gap` — `1x`
- `flow` — `row`
- `placeItems` — `center stretch`
- `gridArea` — `buttonGroup`

### Base Properties

Supports [Base properties](../../BaseProperties.md).

### Style Properties

These properties allow direct style application without using the `styles` prop:

- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
- **Color:** `color`, `fill`, `fade`, `image`
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`

## Examples

### Horizontal group

```jsx
<Button.Group>
  <Button>Save</Button>
  <Button type="outline">Cancel</Button>
</Button.Group>
```

### Vertical group

```jsx
<Button.Group direction="vertical">
  <Button>Option 1</Button>
  <Button>Option 2</Button>
</Button.Group>
```
