1.0.8 • Published 7 years ago

material-toggle v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Material-toggle

An easy drop-in material design vanilla custom toggle element. HTML form ready, no framework dependencies, small footprint.

Spec Custom Elements V1 Build Status npm Known Vulnerabilities npm npm

Demo

Material toggle

Installation

npm install --save material-toggle

You need the webcomponents-lite polyfill.

Load the polyfill and the material-toggle.js in your html page or however you load you javascript dependencies:

<script src="webcomponents-lite.js"></script>
<script src="./node_modules/material-toggle/dist/material-toggle.js"></script>

Usage

Just drop an <material-toggle></material-toggle> element into you html <form> element and you are ready to go.

<label><material-toggle name="subscribe" id="subscribe"></material-toggle>Subscribe</label>
<label><material-toggle name="remind" id="remind" disabled></material-toggle>Remind</label>
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago