A button group is used to group buttons whose actions are related.
import { ButtonGroup } from '@frontile/buttons';
A common use case for ButtonGroup
is to create a split button.
You pass pass arguments to ButtonGroup
and they will be passed in to each of the yielded component.
You can overwrite at the specific component as well.
Element: HTMLDivElement
Name | Type | Default | Description |
---|---|---|---|
appearance
|
enum
|
'default'
|
The button appearance |
class
|
string
|
- | Custom class name, it will override the default ones using Tailwind Merge library. |
intent
|
enum
|
- | The intent of the button |
size
|
enum
|
- | The size of the button |
Name | Type | Default | Description |
---|---|---|---|
default
*
|
Array
|
- |