The ButtonGroup component can be used to group related buttons.
The buttons can be grouped by wrapping them with the
They need to be immediate children.
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.
The default Material UI Button Group component follows the Material Design 2 specs.
To use the M3 version, install the experimental
import ButtonGroup from '@mui/material-next/ButtonGroup';
To learn more about Material UI's M3 implementation, visit the M3 Components documentation.