Skip to content
+

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.

Press Enter to start editing

Button variants

All the standard button variants are supported.

Press Enter to start editing

Sizes and colors

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

Press Enter to start editing

Vertical group

The button group can be displayed vertically using the orientation prop.

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.

Disabled elevation

You can remove the elevation with the disableElevation prop.

Press Enter to start editing

Experimental APIs

Loading button

You can use the <LoadingButton /> from @mui/lab in the button group.

Press Enter to start editing

Material Design 3

The default Material UI Button Group component follows the Material Design 2 specs. To use the M3 version, install the experimental @mui/material-next package.

import ButtonGroup from '@mui/material-next/ButtonGroup';
<ButtonGroup />

Playground


To learn more about Material UI's M3 implementation, visit the M3 Components documentation.

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.