Button Group

Outline buttons joined into one row: shared edges, outer corners only. Each stays its own tab stop, and the focused or hovered one rises above its neighbours so its edge shows whole. For one choice among several use Segmented Control; for arrow-key movement use Toolbar.

BetaReady to use. Its API can still change in a minor release; the changelog says when.

import { ButtonGroup, ButtonGroupText } from "@leap-crm/design-system";

Buttons

Tab through: each button shows the blue edge and halo above its neighbours.

November 2026

Best practices

When to use it, and the rules that apply in particular places.

GuidancePractice
DoUse outline buttons inside it. Their borders draw the shared edges, and only the outer corners are rounded.
DoGive the group an aria-label that names the set, like Export or Month, so a screen reader announces what the buttons belong to.
DoUse ButtonGroupText for a label cell inside the row, like the month between the previous and next buttons.
Don'tUse it for one choice among several, like a list or board view. Use SegmentedControl or ViewSwitch, which show which option is selected.
Don'tUse it when the row should be one tab stop with arrow keys between its buttons. Every button in a group is its own tab stop; use Toolbar instead.

Props

ButtonGroup

PropTypeDefaultDescription
aria-labelstring—Names the group, like "Page view".
childrenReactNode—What it shows inside.
classNamestring—Classes added to the root element, merged with its own. Tokens only.

ButtonGroupText

PropTypeDefaultDescription
children *ReactNode—What it shows inside.
classNamestring—Classes added to the root element, merged with its own. Tokens only.

Keyboard

The keys it answers to. Tab moves between components, arrows move within them.

KeysWhat they do
TabMoves from one button to the next: each is its own tab stop.
EnterSpacePresses the focused button.