react-switch-input

1.1.0 • Public • Published

Installation

npm:

$ npm install react-switch-input

yarn:

$ yarn add react-switch-input

Import

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

Properties

Props Type Description Value default
name string To identify each switch "switch"
labelLeft string Text to left of switch [empty]
labelRight string Text to right of switch [empty]
disabled bool To enable/disable false
checked bool Turn on/off false
theme string To define the theme "one"
onChange function To handle the value (checked) [empty]

Demo

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

License

MIT Free Software

Package Sidebar

Install

npm i react-switch-input

Weekly Downloads

242

Version

1.1.0

License

MIT

Unpacked Size

2.92 MB

Total Files

26

Last publish

Collaborators

  • erikaperugachi