You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/site/content/tutorial/13-classes/02-class-shorthand/app-a/App.svelte

18 lines
213 B

<script>
let big = false;
</script>
<style>
.big {
font-size: 4em;
}
</style>
<label>
<input type=checkbox bind:checked={big}>
big
</label>
<div class:big={big}>
some {big ? 'big' : 'small'} text
</div>