0.2.6 • Published 8 years ago

@custom-element/checkbox v0.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Checkbox

Material Design Spec

Checkboxes allow the selection of multiple options from a set.

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/checkbox"></script>

npm users only

$ npm install @custom-element/checkbox

import '@custom-element/checkbox'; // import and use it

Examples

<div>
  <a-checkbox id="checkbox1"></a-checkbox>
  <label for="checkbox1">Unchecked</label>
  <a-checkbox id="checkbox2" checked=""></a-checkbox>
  <label for="checkbox2">Checked</label>
  <a-checkbox id="checkbox3" disabled=""></a-checkbox>
  <label for="checkbox3">Disabled</label>
  <a-checkbox id="checkbox4" checked="" disabled=""></a-checkbox>
  <label for="checkbox4">Disabled</label>
</div>
0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago