Actions

Button Group

Related buttons joined into one horizontal set. A label states the purpose, and screen readers read it as a single group.

ReactVueWeb Components
View in Storybook

Playground

Examples

<ButtonGroup label="Text alignment">
  <Button>Left</Button>
  <Button>Center</Button>
  <Button>Right</Button>
</ButtonGroup>

Props

Name Type Default Description
orientation 'horizontal' | 'vertical' horizontal Layout orientation. @default 'horizontal'
label string Accessible label describing the group.

Accessibility

  • Body/background contrast is ≥ 7:1 (AAA) in both light and dark.
  • Every interaction works with the keyboard alone.
  • The focus ring is always visible.
  • Respects prefers-reduced-motion and stops excessive motion.

Every component is designed to meet WCAG 2.1 AAA.