Buttons
ButtonGroup
Lays out related buttons in a row or column with a consistent gap.
import { ButtonGroup } from "datui";Playground
<ButtonGroup mode="horizontal" gap="m" align="left" />Examples
Modes
Accessibility
- Renders
role="group"; give it anaria-labeldescribing the set. - Each button stays a separate tab stop.
API
ButtonGroup
Lays out related buttons in a row or column. Exposes `role="group"`; give it an `aria-label`.
| Prop | Type | Default | Description |
|---|---|---|---|
| align | "center" | "left" | "right" | — | |
| className | string | — | |
| gap | "none" | "s" | "m" | "space" | — | |
| mode | "horizontal" | "vertical" | — | |
| stretched | boolean | — |