Skip to content

Latest commit

 

History

History
88 lines (78 loc) · 2 KB

README.md

File metadata and controls

88 lines (78 loc) · 2 KB

Example Source demo GIF

Shnyaga - is a switch UI component for React.

Installation

npm install react-shnyaga

Usage

import React from 'react';
import Shnyaga from 'react-shnyaga';

import 'react-shnyaga/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
disabled Boolean false switch is disabled
offColor Color #e6e6e6 `Off` background color
onColor Color #468cff `On` background color
className String custom class name
size String normal Switch size (default: normal)
onClick Function () => ({}) called when switch is clicked

Contacts

License

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