Skip to main content

Button group

Group a series of buttons together on a single line or stack them in a vertical column.

Basic example

Wrap a series of <Button>s in a <ButtonGroup>.

Result
Loading...
Live Editor

Button toolbar

Combine sets of <ButtonGroup>s into a <ButtonToolbar> for more complex components.

Result
Loading...
Live Editor

Feel free to mix input groups with button groups in your toolbars. Similar to the example above, you’ll likely need some utilities though to space things properly.

Result
Loading...
Live Editor

Sizing

Instead of applying button sizing props to every button in a group, just add size prop to the <ButtonGroup>.

Result
Loading...
Live Editor

Nesting

You can place other button types within the <ButtonGroup> like <DropdownButton>s.

Result
Loading...
Live Editor

Vertical variation

Make a set of buttons appear vertically stacked rather than horizontally, by adding vertical to the <ButtonGroup>. Split button dropdowns are not supported here.

Result
Loading...
Live Editor

API

ButtonGroup

ButtonToolbar