1.0.0 • Published 7 years ago

react-onoff-switch v1.0.0

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

OnOff switch button

React component, on-off sliding button to keep track of a user choice or state.

React on off switch button

Install from npm

npm install react-onoff-switch

Demo

Simple demo example here.

API

Usage

import OnOff from 'react-onoff-switch'
ReactDOM.render(
	<OnOff onChange={(value) => console.log('New value is:', value)}/>,
	document.getElementById('app')
);

props

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago