Skip to content

Actions

IButtonGroup ​

Joins buttons into one control. The children keep their own props; the group handles the seams and hands down a size.

A button group is layout. For a choice between options, use ITabs, IToggleGroup or IRadioGroup — each has a model and the keyboard behaviour that goes with one.

One size for the group ​

size is inherited by every child that does not set its own.

Split buttons ​

The common shape: a primary action with a menu beside it.

Vertical ​

Filling the width ​

Props ​

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Direction the buttons join along
sizeButtonSize—Inherited by children that don't set their own
blockbooleanfalseFills the container width
asstring'div'Element to render
unstyledboolean—Drop built-in classes
classstring—Merged with the built-in classes

Give the buttons in a group the same variant, apart from the split-button pairing above.