Closed bencroker closed 4 weeks ago
This PR adds a data-class-* plugin for controlling the adding/removal of a class to an element.
data-class-*
<div class="btn" data-class-hidden="$hide" data-class-font-bold="$bold" data-class-text-yellow-500="$highlight" > </div>
Closing in favour of a data-class="{className: expression}" syntax.
data-class="{className: expression}"
This PR adds a
data-class-*
plugin for controlling the adding/removal of a class to an element.