rc-switcher
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i rc-switcher

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

34.6 kB

Total Files

13

Last publish

Collaborators

  • fixcer