Skip to content

Archakov06/react-shnyaga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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