Skip to content

ButtonGroup ​

Joined buttons

A set of related actions that read as one control — a pager, prev/next, a range picker. The buttons touch, share edges, and the outer corners belong to the group. The group stands upright and leans as one plate when any button in it is hovered or focused; orientation="vertical" stacks them, and the stack leans once rather than as a staircase of plates. Give the group a label; it becomes role="group"'s name.

Each button is its own tab stop and carries no selection state. For an exclusive choice with aria-pressed — Day / Week / Month where one is on — use ToggleGroup; for a main action with a menu beside it, SplitButton; for several groups with one tab stop and arrow-key roving, Toolbar.

Basic

Usage ​

ts
import { BlessButtonGroup } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"
labelstring—

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.