verysimple

Switch

The switch component is used to toggle a boolean value.

Demo

Props

checked

The checked state of the switch.

onChange

The function to call when the switch state changes.

Code Snippet

<Switch />