Skip to content
Docs
Components
Primitives
Button Group

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

typecollapsed | groupcollapsed
sizeunionmd
variantunionsolid
Last updated on July 26, 2022