Add checked.min.css
to your project.
Add relevant classes based on the checkbox style you want.
<div class=“checked-boxes”>
<input name="desserts" id="dessert1" type=“checkbox” value=“yes”>
<label for="dessert1">Ice Cream</label>
</div>
<div class=“checked-boxes”>
<input name="awesome" id="awesomeY" type=“radio” value=“yes”>
<label for="awesomeY">Yes!</label>
</div>
<div class=“checked-circle”>
<input name="theme" id="theme-dark" type=“radio” value=“dark”>
<label for="theme-dark"><i class="fa fa-moon"><i></label>
</div>
<div class=“checked-tiles”>
<input name="awesome" id="awesomeY" type=“radio” value=“yes”>
<label for="awesomeY">Yes!</label>
</div>
Use checked-bubble
to display options as bubbles with the sizes calculated either automatically (by adding wrapper-bubbles--auto
to wrapper div) or defined (by adding md
or lg
to bubble div).
Bubbles have a default filled style, to get unselected bubbles to appear as outlines use checked-bubble--outline
.
<div class=“wrapper-bubbles wrapper-bubbles--auto”>
<div class=“checked-bubble”>
<input name="icecream" id="d-icecream" type=“checkbox” value="icecream">
<label for="d-icecream">Ice cream</label>
</div>
...
</div>
Add checked-rating--scale
to get a scale of colours
<div class=“checked-rating”>
<input name="L" id="size-large" type=“radio” value=“L”>
<label for="size-large">L</label>
<input name="M" id="size-medium" type=“radio” value=“M”>
<label for="size-medium">L</label>
<input name="S" id="size-small" type=“radio” value="S">
<label for="size-small">L</label>
</div>
Run npm build
to watch scss file changes