Button Group
Buttons that belong together: toolbars and segmented actions.
Installation
Once per app, set up Aedis UI. The CLI verifies the signed release before writing anything and pins every dependency:
npx @aedis/cli@0.1.0 initImport the theme once in your global CSS, after Tailwind:
app/globals.css
@import "tailwindcss";@import "./styles/aedis-theme.css";Then add the component:
npx @aedis/cli@0.1.0 add button-group# pnpm dlx @aedis/cli@0.1.0 add button-group · yarn dlx @aedis/cli@0.1.0 add button-group · bunx @aedis/cli@0.1.0 add button-groupProps
| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | aria-labelledby | string | — | Required: the group's name. |
| orientation | "horizontal" | "vertical" | "horizontal" | Direction; joined edges lose their inner radius. |
| ButtonGroupText / ButtonGroupSeparator | components | — | A text cell (e.g. a URL prefix) and a divider. |
Security
- role="group" with a name; each button keeps its own semantics and tab stop.