1.0.9 • Published 7 years ago
shaf-toggle v1.0.9
It's easy peasy
Check out the demo. Works in IE11, Edge, Chrome, Firefox, and Safari.
<!-- Custom Elements v1 polyfill (2.7KB gzipped) -->
<script src="https://unpkg.com/@webcomponents/custom-elements@1.0.0-alpha.3"></script>
<!-- our custom element's source (6.5KB gzipped) -->
<script src="https://unpkg.com/shaf-toggle@1.0.9"></script>
Usage
<shaf-toggle>
<input type="checkbox" name="smooooth" value="yes" checked />
</shaf-toggle>
Benefits
Because this wraps an existing <input type="checkbox" />
:
- It is form-friendly.
- It doesn't mess with your event handlers.
- Your checkbox still works if JavaScript is turned off or fails to load.
Contributors
- aaronshaf
- ahstro
- This project inherits work from react-toggle.
See also
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago