css-checkbox

Friendly CSS checkbox control


Keywords
browser, checkbox, control, css, form, style
License
MIT
Install
npm install css-checkbox@2.0.1

Documentation

css-checkbox

Friendly CSS checkbox control

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="checkbox">
	<input type="checkbox">
	<span class="checkbox-indicator"></span>
	Custom checkbox
</label>

Usage

You could use a tool like sheetify to consume.

var css = require('sheetify')

css('css-checkbox')

Install

npm

npm install css-checkbox

Related