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/test/css/samples/refs-qualified/input.html

15 lines
223 B

{{#if active}}
<button ref:button class='active'>deactivate</button>
{{else}}
<button ref:button>activate</button>
{{/if}}
<style>
ref:button.active {
color: red;
}
ref:button.inactive {
color: green;
}
</style>