mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* move `./tests/jit` to `./tests` * make tests consistent Abstracted a `run` function and some syntax highlighting helpers for `html`, `css` and `javascript`.
12 lines
186 B
Svelte
12 lines
186 B
Svelte
<script>
|
|
let current = 'foo'
|
|
</script>
|
|
|
|
<button class:lg:hover:bg-blue-500={current === 'foo'}>Click me</button>
|
|
|
|
<button
|
|
class:bg-red-500={current === 'foo'}
|
|
>
|
|
Click me
|
|
</button>
|