- Implementation
Common Examples
Button toggle sizes
Use thesize prop to adjust the text size and padding of the button.Controlling button toggles
Uncontrolled button toggles
By default, button toggles are uncontrolled. The checked state changes when the button is clicked. To make the button toggle checked by default, use thedefaultChecked prop.Controlled button toggles
To programmatically set the checked state of a button toggle, use thechecked prop.Handling state changes
TheonChange prop accepts a function that passes the change event and current state object. This can be used to trigger other actions depending on the changed state.React Accessibility
Icon-only button toggles
Do
Don’t


