react-shnyaga

1.0.18 • Public • Published

Example

Shnyaga - is a switch ui component for React.

Example

Visit example

Installation

npm install react-shnyaga

Usage

import React from 'react'
import Shnyaga from 'react-shnyaga'
 
import './src/styles.css'
 
React.render(<Shnyaga />, document.getElementById('root'))

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

License

Now licensed under the MIT License: http://deuxhuithuit.mit-license.org

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.180latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.180
1.0.170
1.0.160
1.0.151
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.81
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.01

Package Sidebar

Install

npm i react-shnyaga

Weekly Downloads

3

Version

1.0.18

License

MIT

Last publish

Collaborators

  • archakovim