@cityssm/simple-fa5-checkbox

0.2.1 • Public • Published

Simple Font Awesome 5 Checkboxes

If you are already using Font Awesome 5 in your project, it's should be simple to use the icons for your checkboxes and radio buttons.

Download the facheck.min.css stylesheet, or the facheck-bulma.min.css stylesheet if you're using the Bulma framework, or grab the stylesheets from npm.

npm install @cityssm/simple-fa5-checkbox

Usage

<p class="facheck">
  <input id="checkbox1" type="checkbox" checked />
  <label for="checkbox1">Checkbox in regular style</label>
</p>

<p class="facheck facheck-fas">
  <input id="checkbox2" type="checkbox" checked />
  <label for="checkbox2">Checkbox in solid style</label>
</p>

<p class="facheck facheck-fas-checked">
  <input id="checkbox3" type="checkbox" checked />
  <label for="checkbox3">Checkbox in solid style when checked</label>
</p>

<p class="facheck facheck-fas facheck-far-checked">
  <input id="checkbox4" type="checkbox" checked />
  <label for="checkbox4">Checkbox in regular style when checked</label>
</p>

See more examples including radio buttons, inline radio buttons, and Bulma styles.

Package Sidebar

Install

npm i @cityssm/simple-fa5-checkbox

Weekly Downloads

35

Version

0.2.1

License

MIT

Unpacked Size

19.9 kB

Total Files

10

Last publish

Collaborators

  • dgowans