action — wyrd.component.button-group

ButtonGroup

Horizontal composition wrapper that visually joins independent Button and IconButton actions.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
document-actions state: default
Usage
import { WyrdButtonGroup } from "@wyrd-company/react";

<WyrdButtonGroup label="Document workflow actions">
  Save draft | Preview | Publish
</WyrdButtonGroup>
formatting-actions state: default
Usage
import { WyrdButtonGroup } from "@wyrd-company/react";

<WyrdButtonGroup label="Formatting actions">
  Bold | Italic | Link
</WyrdButtonGroup>
02

Properties

NameTypeDefaultSummary
label string undefined Required accessible name for the group of actions.
03

Slots & events

SlotCardinalityAcceptsSummary
actions one-or-many component Independent Button or IconButton actions in visual and focus order.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
radius rounded.md
divider-color color.outline
divider-width 1px
05

States

StateSourceSummary
default platform Horizontal group of enabled or independently stateful actions.
06

Accessibility

From the contract's accessibility obligations. Role group; Label property provides the required accessible name.

  • Each child retains native keyboard behavior and document-order focus.
  • No roving tabindex is introduced because children are independent actions rather than a selection control.
  • Child Button and IconButton roles, names, disabled states, and loading states remain unchanged.
  • Grouping does not imply selection or mutually exclusive state.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. V1 is horizontal. Vertical orientation is a future extension; Toggle Group owns selection-control behavior.

SerializableMembers
Propertieslabel
Slotsactions
Events
The Wyrding Way — a contract-first design system. © Wyrd Company