ButtonGroup
A stacked or side-by-side arrangement of one primary button and up to two secondary buttons. The orientation prop switches between horizontal (equal-width columns) and vertical (full-width stacked) layouts.
Overview
A stacked or side-by-side arrangement of one primary button and up to two secondary buttons. The orientation prop switches between horizontal (equal-width columns) and vertical (full-width stacked) layouts.
The horizontal variant.
Variants and states
| default | |
|---|---|
| horizontal | |
| vertical |
Anatomy
- 1Button.Primary required instance swap
- 2Container.ButtonSecondary optional
- 3Button.Secondary instance swap
- 4Button.Tertiary optional instance swap
Measurements
Specs
Values resolved live from the token spine. Token names follow the active platform; each links to its page.
Properties
The component’s Figma API, the properties you set on an instance. Useful to designers in Figma and to engineers mapping it to code props.
Accessibility
Ensure a minimum 44 by 44pt tap target for any interactive instance, adding surrounding padding when the component itself is shorter. Keep text concise, and never rely on color alone to convey meaning; pair it with a label or an icon so the message survives for color-blind and low-vision users.
Reference: Apple Human Interface Guidelines and WCAG 2.5.5 Target Size.