Giter Club home page Giter Club logo

react-switch-button's Introduction

React Switch Button control

A Switch control built with and for React

Demo & Example

Example: http://gfazioli.github.io/react-switch-button Live demo: Online Demo

Installation

You can use React Switch Button by using NPM and include it in your own React build process (using Browserify, etc).

npm install react-switch-button --save

At this point you can import react-switch-button and its styles in your application as follows:

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

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:

<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.

react-switch-button's People

Contributors

bmaland avatar gfazioli avatar lironess avatar pierrefourgeaud avatar reggino avatar tappleby avatar tcw165 avatar teodortunev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.