Import
Basic Usage
ToggleButton Props
The value to associate with the button when selected in a ToggleButtonGroup.
If
true, the button is rendered in an active state.color
'standard' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'
default:"'standard'"
The color of the button when it is in an active state. Supports both default and custom theme colors.
The size of the component. The prop defaults to the value inherited from the parent ToggleButtonGroup component.
If
true, the component is disabled.If
true, the keyboard focus ripple is disabled.If
true, the button will take up the full width of its container.Callback fired when the state changes.
Callback fired when the button is clicked.
The system prop that allows defining system overrides as well as additional CSS styles.
The content of the component.
ToggleButtonGroup Props
The currently selected value within the group or an array of selected values when
exclusive is false.If
true, only allow one of the child ToggleButton values to be selected.Callback fired when the value changes.
color
'standard' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'
default:"'standard'"
The color of the button when it is selected. Supports both default and custom theme colors.
The size of the component.
The component orientation.
If
true, the component is disabled.If
true, the button group will take up the full width of its container.