css-radio

1.0.2 • Public • Published

css-radio

Friendly CSS radio button

Build Status

This is inspired by wtf-forms. I often find myself copying this source, so I made a package.

Features

  • Create a larger hit area for checking the control
  • Replace the default <input> with a semantic wrapper
  • Trigger the state of <input> automatically

Example

<label class="radio">
    <input id="example" name="radio" type="radio">
    <span class="radio-indicator"></span>
    Custom radio
</label>

Usage

You could use a tool like sheetify to consume.

var css = require('sheetify')
 
css('css-radio')

Install

npm

npm install css-radio

Related

Package Sidebar

Install

npm i css-radio

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.4 kB

Total Files

6

Last publish

Collaborators

  • frekyll