README
fancy-checkbox
Fancy checkboxes and radios. Based on iCheck plugin but simplified.
Installation
First, make sure you have jQuery or Zepto installed. Next, run the following command:
bower install git@github.com:wealthsimple/fancy-checkbox.git --save
Next, include the dist/fancy-checkbox.js
and dist/fancy-checkbox.css
on your webpage.
Usage
This plugin will automatically apply styling to all inputs of type="checkbox"
and type="radio"
.
If you wish to disable the styling on a specific input, you must add data-fancy-disabled="true"
attribute.
You can also disable styling on all child inputs by adding data-fancy-disabled="true"
to any ancestor element.
Generating Dist
- Run
npm install
to update/install dependencies - Run
npm prepublishOnly
to generate dist.
Making a new release
- Bump the version in
package-lock.json
- Run
npm publish
to publish new version