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

Package Sidebar

Install

npm i react-shnyaga

Weekly Downloads

5

Version

1.0.18

License

MIT

Last publish

Collaborators

  • archakovim