Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clari/react-ios-switch

React switch component https://clari.github.io/react-ios-switch
https://github.com/clari/react-ios-switch

Last synced: 3 months ago
JSON representation

React switch component https://clari.github.io/react-ios-switch

Awesome Lists containing this project

README

        

react-ios-switch
===

[Demo](https://clari.github.io/react-ios-switch)

[CodePen](https://codepen.io/mking-clari/pen/dzKxdb)

Features
---
- Drag or click to toggle
- Works with labels

Usage
---
```javascript
import Switch from 'react-ios-switch';

// Simple usage
{}}
/>

// All props (defaults shown)
{}}
onColor="rgb(76, 217, 100)"
pendingOffColor={undefined}
pendingOnColor={undefined}
readOnly={undefined}
style={undefined}
/>
```

Development
---
```
# Install packages
yarn

# Start server
yarn start

# Visit http://localhost:8080
```

Inspirations
---
- [Switchery](https://abpetkov.github.io/switchery)
- [Human Interface Guidelines](https://developer.apple.com/ios/human-interface-guidelines/visual-design/color)