# ButtonGroup Related buttons, or an input and its buttons, joined into one control. ```ehtml Example import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "@elements/ui/button-group"; import { Button } from "@elements/ui/button"; ``` ## Parts | Part | What it is | |---|---| | `ButtonGroupSeparator` | A rule between two members. | | `ButtonGroupText` | A text or label segment. | | `.button-group` | The base button-group classes, extended. Usable without the template. | ## Attributes ### ButtonGroup | Attribute | Type | Default | Description | |---|---|---|---| | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | A row or a column. | | `label` | `string` | `""` | The group's accessible name (aria-label). | | `class` | `string` | `""` | Extra classes. | | `attrs` | `Record` | `{}` | aria-labelledby, id, data-\*. | ### ButtonGroupSeparator | Attribute | Type | Default | Description | |---|---|---|---| | `orientation` | `"horizontal" \| "vertical"` | `"vertical"` | The rule's direction: vertical between buttons in a row. | ### ButtonGroupText | Attribute | Type | Default | Description | |---|---|---|---| | `htmlFor` | `string` | `""` | Renders a `