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