react-input-switch
React toggle switch component.
Installation
Custom styles
Controlled example (with hook)
Custom on/off value
The default on/off value is 1/0 and default value is 1. This component will also render a hidden input (<input type="hidden"/>
) with current value and the name prop.