# react-switch-button2

> A React UI Component to display an awesome Switch (swipe) Button control forked from http://gfazioli.github.io/react-switch-button/

Latest version **1.0.1** (published 2017-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-switch-button2
pnpm add react-switch-button2
yarn add react-switch-button2
bun add react-switch-button2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-17 |
| First published | 2017-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Henrique Souza Nascimento |
| Maintainers | foxzinrox |
| Keywords | react, react-component |

## Links

- npm: https://www.npmjs.com/package/react-switch-button2
- Repository: https://github.com/henriquenascimento/react-switch-button
- Issues: https://github.com/henriquenascimento/react-switch-button/issues
- npm.io page: https://npm.io/package/react-switch-button2

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.3.1
- [babelify](https://npm.io/package/babelify.md) ~7.3
- [react-dom](https://npm.io/package/react-dom.md) ^15.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-10-17

## README

# React Switch Button control

A Switch control built with and for [React](http://facebook.github.io/react/index.html)

## Demo & Example

Example: [http://gfazioli.github.io/react-switch-button](http://gfazioli.github.io/react-switch-button)
Live demo: [Online Demo](http://gfazioli.github.io/react-switch-button#demo)

## Installation

You can use React Switch Button by using NPM and include it in your own React build process (using [Browserify](http://browserify.org), etc).

```javascript
npm install react-switch-button --save
```

At this point you can import `react-switch-button` and its styles in your application as follows:

```js
import SwitchButton from 'react-switch-button';

// Be sure to include styles at some point, probably during your bootstrapping
import 'react-switch-button/dist/react-switch-button.css';
```

or

```js
const SwitchButton = require( 'react-switch-button' );
```

and then include the *css* in your HTML page.

Of course, you can also use the standalone build by including `react-switch-button.js` and `react-switch-button.css` in your page. (If you do this though you'll also need to include the dependencies.) For example:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://unpkg.com/classnames/index.js"></script>
<script src="https://unpkg.com/react-switch-button/dist/react-switch-button.js"></script>

<link rel="stylesheet" href="https://unpkg.com/react-switch-button/dist/react-switch-button.css">
```

# Contributing

Thanks for any your contribute.

# License

MIT Licensed. Copyright (c) Giovambattista Fazioli 2017.

---
_Source: https://npm.io/package/react-switch-button2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
