2.0.1 • Published 6 years ago
togl v2.0.1
Togl
A super light-weight library to add a class to an element using data
attributes.
Installation
yarn add togl
or npm install togl --save
Usage
<a href="" data-togl-target=".awesome-div" data-togl-class="cool-class">Click Me</a>
<div class="awesome-div"></div>
2.0.1
6 years ago