npm install react-ios-switchreact-ios-switch
===
Features
---
- Drag or click to toggle
- Works with labels
Usage
---
``javascript
import Switch from 'react-ios-switch';
// Simple usage
onChange={checked => {}}
/>
// All props (defaults shown)
className={undefined}
disabled={undefined}
handleColor="white"
name={undefined}
offColor="white"
onChange={() => {}}
onColor="rgb(76, 217, 100)"
pendingOffColor={undefined}
pendingOnColor={undefined}
readOnly={undefined}
style={undefined}
/>
`
Development
---
`Install packages
yarn
Inspirations
---
- Switchery
- Human Interface Guidelines