Skip to Content
Archi-ui 1.0.25 is released 🎉
ComponentsButton Group

Button Group

The ButtonGroup component can be used to group related buttons.

Basic button group

The buttons can be grouped by wrapping them with the ButtonGroup component. They need to be immediate children.

Usage

import { Button, ButtonGroup } from 'archi-ui'
<ButtonGroup> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </ButtonGroup>

Variant

All the standard button variants are supported

Sizes

The size props can be used to control the appearance of the button group.

Color

Use color prop to control the appearance of the button group.

Split Button

ButtonGroup can also be used to create a split button. The dropdown can change the button action (as in this example) or be used to immediately trigger a related action.

Loading

Use the loading prop from Button to set buttons in a loading state and disable interactions.

Button Group Orientation

The button group can be displayed vertically using the orientation prop

ButtonGroup API

API reference docs for the React ButtonGroup component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component.
variant'filled' | 'outlined' | 'ghost' | 'link''outlined'The variant to use.
size'sm' | 'md' | 'lg''md'The size of the component.
color'primary' | 'secondary' | 'info' | 'warning' | 'success' | 'error''primary'The color of the component.
disabledboolfalseIf true, the component is disabled.
fullwidthboolfalseIf true, the button will take up the full width of its container.
orientation'horizontal' | 'vertical''horizontal'The component orientation (layout flow direction).
Last updated on