Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-switch

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-switch - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

dist/index.js

54

package.json
{
"name": "react-switch",
"version": "0.1.0",
"description": "React components for Dailymotion Switch",
"main": "build/index.js",
"version": "1.0.0",
"description": "Draggable toggle-switch component for react",
"main": "dist/index.js",
"scripts": {
"build": "./node_modules/.bin/gulp build",
"test": "jest"
"build": "babel src -d dist",
"build:watch": "babel src -w -d dist",
"lint": "eslint --ext .js,.jsx src/",
"prepublishOnly": "npm run build",
"test": "jest --verbose"
},
"author": "Romain Berger <romain.berger@dailymotion.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/yogaboll/react-switch.git"
},
"author": "Markus Englund <markus.s.englund@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/yogaboll/react-switch/issues"
},
"homepage": "https://github.com/yogaboll/react-switch#readme",
"peerDependencies": {
"react": ">=15",
"react-dom": ">=15",
"prop-types": ">=15"
},
"devDependencies": {
"gulp": "^3.8.11",
"gulp-babel": "^5.0.0",
"gulp-plumber": "^1.0.0",
"jest-cli": "^0.4.0",
"react-tools": "^0.13.1"
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"enzyme": "^2.9.1",
"eslint": "^4.6.1",
"eslint-config-airbnb": "^15.1.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.3.0",
"jest": "^21.1.0",
"react-test-renderer": "^15.6.1"
},
"dependencies": {
"react": "^0.13.1"
},
"jest": {
"scriptPreprocessor": "<rootDir>/preprocessor.js",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react"
]
"react-draggable": "^3.0.3"
}
}

@@ -1,38 +0,2 @@

# React Switch [![Build Status](https://secure.travis-ci.org/romainberger/react-switch.png)](http://travis-ci.org/romainberger/react-switch)
Set of React components for Dailymotion Switch
## Installation
$ npm install -save react-switch
## Usage
```javascript
import {Button} from 'react-switch'
export default class FollowButton extend React.Component {
handleClick() {
API.followUser(this.user)
}
render() {
var classes = 'btn-primary'
return (
<Button classes={classes} onClick={this.handleClick}><Icon icon="plus" /></Button>
)
}
}
```
## Components
- Buttons
- Icons
- Badges
## Todo
- Alerts
- Modals
- Player
# react-switch
Draggable toggle-switch component for react
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc