Skip to content

fixcer/switcher

Repository files navigation

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={() => {}}
/>

Screenshot

screenshot

About

Switch component for React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published