Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bobek-balinek/tachyons-toggle

CSS module for Tachyons for hiding/displaying an element adjacent to a checkbox
https://github.com/bobek-balinek/tachyons-toggle

css tachyons tachyons-css tachyons-custom

Last synced: 30 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.

```

Hidden until the checkbox is clicked on

```

## Example use:

An example modal demo can be viewed on this [Codepen](https://codepen.io/pbobak/pen/LqbQwd). The trick is to use multiple `` elements with matching `for=""` attributes to change the `checked` state of the input element.