A set of related buttons.
The basic ButtonGroup usage.
set the type or styles of all buttons in the group.
Change the size of the entire group button including the property type.
You can use the vertical property to sort the buttons vertically.
disable all buttons in the group.
Icon only buttons need a name for screen readers, so give each one an aria-label.
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| type | button type | ButtonTypes | ButtonTypes | default |
| ghost | the opposite color | boolean | - | false |
| vertical | show all buttons vertically | boolean | - | false |
| disabled | disable all buttons | boolean | - | false |
| ... | native props | ButtonHTMLAttributes | 'id', 'className', ... | - |
type ButtonTypes =
| 'default'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'abort'
| 'secondary-light'
| 'success-light'
| 'warning-light'
| 'error-light'