ButtonGroup
The ButtonGroup component can be used to group collection of buttons of same type to perform the a set of actions.
Imports
import { ButtonGroup } from "@adaptui/react-tailwind";
Usage
ButtonGroup Styles
Buttons can be grouped together using type
prop.
ButtonGroup sizes
Sizes can be set using the size
prop. The default size is md
. The available
sizes are: sm
md
lg
xl
ButtonGroup variants
Variants can be set using the variant
prop. The default variant is solid
.
The available variants are: solid
subtle
outline
ghost
💡
You can add extra variants & sizes via the theme file. Checkout theming guide.
API Reference
Prop | Type | Default |
---|---|---|
type | collapsed | group | collapsed |
size | union | md |
variant | union | solid |
Last updated on July 26, 2022