0.2.6 • Published 8 years ago
@custom-element/switch v0.2.6
Switch
Material Design Spec Switches allow a selection to be turned on or off.
Installation
Just add the following script(< 2kb gzipped/polyfill in it) to your website. It will add CSS only once if required.
<script defer src="https://unpkg.com/@custom-element/switch"></script>
For npm users
$ npm install @custom-element/switch --save-dev
import '@custom-element/switch'; // import and use it
Examples
<a-switch id="checkbox21"></a-switch> <label for="checkbox21">Unchecked</label>