Button Group API
View componentThe 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.
| Prop | Type | Default |
|---|---|---|
| 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# | booleanDisable child buttons. | — |
| fullWidth# | booleanStretch group and children. | false |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .