Paper Switch

A Switch Web Component built using Polymer

View the Project on GitHub ankurp/paper-switch

paper-switch

A Switch Web Component built for Polymer

Switch Demo

Setup

Import component using <link rel="import" href="./path/to/paper-switch.html">

Then add the following markup

<paper-switch></paper-switch>

To turn the switch on by default use the on=trueattribute

<paper-switch on=true></paper-switch>

Running demo

First go into the paper-switchdirectory do a bower installto import all the required components.

Then run python -m SimpleHTTPServerand go to http://localhost:8000