- Click to toggle
- Draggable handle
- Customizable colors
- Animation
- Hidden input for interaction with labels
import 'react-ios-switch/build/bundle.css';
import Switch from 'react-ios-switch';
<Switch
checked={<bool>}
disabled={<bool>}
handleColor={<color>}
offColor={<color>}
onChange={checked => ...}
onColor={<color>}
pendingOffColor={<color>}
/>
npm install
npm start
# Visit http://localhost:8080