mirror of https://github.com/sveltejs/svelte
15 lines
229 B
15 lines
229 B
5 years ago
|
<script>
|
||
|
export let active;
|
||
|
</script>
|
||
|
|
||
|
<div class="thing {active ? 'active' : ''}">
|
||
|
some stuff
|
||
|
</div>
|
||
|
|
||
|
<style>
|
||
|
.thing {color: blue;}
|
||
|
.active {color: blue;}
|
||
|
.thing.active {color: blue;}
|
||
|
|
||
|
.unused {color: blue;}
|
||
|
</style>
|