0.0.2 • Published 3 years ago
rc-switcher v0.0.2
SWITCH COMPONENT FOR REACT
INSPIRED BY TOGGLE IOS
This component helps to active or inactive.
Installation
npm install rc-swicher
or
yarn add rc-swicher
Usage
Note: id, checked and onChange are required for Switcher component to function. The props name, small, disabled and optionLabels are optional.
Usage: <Switcher id="id" checked={value} onChange={checked => setValue(checked)}} />
import Switcher from 'rc-switcher';
<Switcher
id="active"
name="active"
checked
onChange={() => {}}
/>