mirror of https://github.com/sveltejs/svelte
19 lines
212 B
19 lines
212 B
6 years ago
|
<script>
|
||
|
let big = false;
|
||
|
</script>
|
||
|
|
||
|
<label>
|
||
2 years ago
|
<input type="checkbox" bind:checked={big} />
|
||
6 years ago
|
big
|
||
|
</label>
|
||
|
|
||
|
<div class:big>
|
||
|
some {big ? 'big' : 'small'} text
|
||
4 years ago
|
</div>
|
||
|
|
||
|
<style>
|
||
|
.big {
|
||
|
font-size: 4em;
|
||
|
}
|
||
2 years ago
|
</style>
|