Skip to content

Commit

Permalink
Merge pull request #2517 from CreaturesInUnitards/patch-4
Browse files Browse the repository at this point in the history
add multiple class toggles example
  • Loading branch information
Rich-Harris authored Apr 25, 2019
2 parents c97ee00 + 644c02e commit f386786
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ A `class:` directive provides a shorter way of toggling a class on an element.

<!-- Shorthand, for when name and value match -->
<div class:active>...</div>

<!-- Multiple class toggles can be included -->
<div class:active class:inactive={!active} class:isAdmin>...</div>
```


Expand Down

0 comments on commit f386786

Please sign in to comment.