Skip to main content

ButtonGroup

A group of related buttons displayed together with shared styling and layout.

Import​

import { ButtonGroup } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<ButtonGroup items={[{label: 'Left'}, {label: 'Center'}, {label: 'Right'}]} />
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All ButtonGroup components accept standard React Native View props.

Examples​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={16}>
  <ButtonGroup items={[{label: 'Day'}, {label: 'Week'}, {label: 'Month'}, {label: 'Year'}]} />
  <ButtonGroup items={[{label: 'All'}, {label: 'Active'}, {label: 'Completed'}]} />
</Stack>
</ThemeProvider>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

Changelog​

See GitHub Releases for version history.