INSPIRED BY TOGGLE IOS
This component helps to active or inactive.
npm install rc-swicher
or
yarn add rc-swicher
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={() => {}}
/>