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 "@renderlesskit/react-tailwind";
Usage
ButtonGroup Styles
Buttons can be grouped together using collapsed
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 |
---|---|---|
collapsed | boolean | false |
size | union | md |
variant | union | solid |