Toggle button

Also known as

Button group, Toggle button group, Toggle group, Segmented control

ToggleButton is a two-state button that the user can turn on or off. The corresponding action takes effect immediately. With ToggleButtonGroup, users can make a mutually exclusive selection from a set of related commands—with only one option selected at a time.