Shnyaga - is a switch ui component for React.
Example
Installation
npm install react-shnyaga
Usage
React
Props
The component takes the following props.
name | type | default | description |
---|---|---|---|
checked | Boolean | false | whether switch is checked |
onClick | Function | () => {} | called when switch is clicked |
disabled | Boolean | false | switch is disabled |
className | String | custom class name | |
offColor | Color | #e6e6e6 | `Off` background color |
onColor | Color | #468cff | `On` background color |
size | String | normal | Switch size (default: normal) |
Contacts
- E-Mail hello@archakov.im
- Website http://archakov.im
License
Now licensed under the MIT License: http://deuxhuithuit.mit-license.org