structyl

Button Group API

View component

The full prop reference for the Button Group component. Groups related buttons together.

Import

tsx
import { ButtonGroup } from '@structyl/styled';

Props

ButtonGroup

Groups buttons and propagates shared button props.

PropTypeDefault
orientation#'horizontal' | 'vertical'

Button group axis.

'horizontal'
variant#'contained' | 'outlined' | 'text'

Variant applied to Structyl Button children.

'outlined'
color#'default' | 'primary' | 'secondary' | 'destructive' | 'muted'

Color mapped to Structyl button variants.

'default'
size#'small' | 'medium' | 'large'

Size applied to Structyl Button children.

'medium'
disabled#boolean

Disable child buttons.

fullWidth#boolean

Stretch group and children.

false
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library