Homecomponentsaction

ButtonGroup

A container to group buttons with shared size.


Use a ButtonGroup to show multiple related buttons in a row or stacked.

Sizes

Use the size property to set the size of the buttons in the group.

Spacing

Use the space property to set the spacing between the buttons.

Alignment

Use the align property to set the alignment of the buttons.

Reverse Order

Use the reverse property to reverse the order of the buttons.

Full width

Use the fullWidth property to make the button group full width.

Collapse

Use the collapseBelow property to make the button group collapse below a certain breakpoint. Collapsed items are automatically stretched.

Examples

A common use of ButtonGroup is to show multiple related buttons in a card.



API

children
Required
The buttons.
ReactNode

size
Size of the buttons.
small
medium
large

spacing
The spacing between the buttons.

alignH
Sets the horizontal alignment of the buttons.

reverse
Reverse the order of the buttons.
true
false

fullWidth
Expand the group to fill the available space.
true
false

collapseBelow
Collapse the buttons below this size.
mobile
tablet
desktop
wide

data
An object with the data keys and values.
DataAttributeMap