CSS only, bootstrap compatible toggle, checkbox and radio buttons.
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
.
- 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.
- NO dependencies ;)
All major browsers. Well... latest ones.
Copyright © 2018 Alex Do.
Licensed under the MIT License.