Skip to content

ankurp/paper-switch

Repository files navigation

paper-switch

A Switch Web Component built for Polymer

paper-switch

Setup

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

Then add the following markup

<paper-switch value="{{ result }}"></paper-switch>

To turn the switch on by default use the on=true attribute

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

Running demo

npm install
bower install
npm run demo

Then go to http://localhost:8080/components/paper-switch/index.html