1.1.0 • Published 5 years ago

react-switch-input v1.1.0

Weekly downloads
62
License
MIT
Repository
github
Last release
5 years ago

Installation

npm:

$ npm install react-switch-input

yarn:

$ yarn add react-switch-input

Import

import { Switch } from 'react-switch-input';

Properties

PropsTypeDescriptionValue default
namestringTo identify each switch"switch"
labelLeftstringText to left of switchempty
labelRightstringText to right of switchempty
disabledboolTo enable/disablefalse
checkedboolTurn on/offfalse
themestringTo define the theme"one"
onChangefunctionTo handle the value (checked)empty

Demo

https://erikaperugachi.github.io/react-switch-input

License

MIT Free Software

1.1.0

5 years ago

1.0.0

5 years ago

0.1.10

6 years ago

0.1.6

6 years ago