Toggle button
Toggle button
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.