Friendly CSS radio button
This is inspired by wtf-forms. I often find myself copying this source, so I made a package.
- Create a larger hit area for checking the control
- Replace the default
<input>
with a semantic wrapper - Trigger the state of
<input>
automatically
<label class="radio">
<input id="example" name="radio" type="radio">
<span class="radio-indicator"></span>
Custom radio
</label>
You could use a tool like sheetify to consume.
var css = require('sheetify')
css('css-radio')
npm install css-radio