Download the stylesheet from GitHub, or grab it from npm.
npm install @cityssm/simple-fa5-checkbox
Add the stylesheet to your page,
and wrap your input
and label
tags
in a .facheck
wrapper.
<p class="facheck"> <input id="checkboxID" type="checkbox" checked /> <label for="checkboxID">Checkbox</label> </p>
<p class="facheck facheck-fas facheck-inline"> <input id="radioID" name="radioB" type="radio" checked /> <label for="radioID">Radio Option</label> </p>
The Bulma framework is by no means required,
but if you are using it, you can use the facheck-bulma.min.css
stylesheet instead for Bulma-specific styles.
<p class="facheck is-success"> <input id="checkbox-success" type="checkbox" checked /> <label for="checkbox-success">Success Checkbox</label> </p>