Skip to content

CSS module for Tachyons for hiding/displaying an element adjacent to a checkbox

License

Notifications You must be signed in to change notification settings

bobek-balinek/tachyons-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tachyons-toggle

Easily perform hiding/displaying an element with an input checkbox. This is great for composing any type of popovers or modals that should remain visible until the user actively hides it.

<input type="checkbox" class="toggle-checked" />
<div class="toggle-target"> Hidden until the checkbox is clicked on</div>

Example use:

An example modal demo can be viewed on this Codepen. The trick is to use multiple <label> elements with matching for="" attributes to change the checked state of the input element.

About

CSS module for Tachyons for hiding/displaying an element adjacent to a checkbox

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages