Controlled Mode
By default, the Switch is in an uncontrolled state.
To manage the state of the Switch, use its checked
property, handle the onChange
event, and pass the new value through the props.
Manual Switch Toggle
The following example demonstrates how to manually toggle the Switch.
Read-Only Switch
The following example demonstrates how to implement a read-only Switch.