toggle-checkbox-radio
v2.0.2
Published
CSS only, bootstrap compatible toggle, checkbox and radio buttons
Downloads
859
Maintainers
Readme
toggle-checkbox-radio
CSS only, bootstrap compatible toggle, checkbox and radio buttons.
Quick start
Several quick start options are available:
- Download the latest release.
- Clone the repo:
git clone https://github.com/alexdonh/toggle-checkbox-radio.git
. - Install with npm:
npm install toggle-checkbox-radio
.
Usage
- Include
toggle-checkbox-radio.css
ortoggle-checkbox-radio.min.css
to your page:
<head>
...
<link href="path/to/toggle-checkbox-radio.css" rel="stylesheet" />
...
</head>
- Add
toggle
,checkbox
orradio
class:
<label>
<input type="checkbox" class="toggle" /> This is a toggle
</label>
<label>
<input type="checkbox" class="checkbox" /> And this is a checkbox
</label>
<label class="radio">
<input type="radio" class="radio" /> I'm a radio button
</label>
Checkout the samples page for further information.
Dependencies
- NO dependencies ;)
Support
All major browsers. Well... latest ones.
Author
Copyright and license
Copyright © 2018 Alex Do.
Licensed under the MIT License.