svelte/test/parser/samples/event-handler/input.svelte

6 lines
98 B

<button on:click="{() => visible = !visible}">toggle</button>
{#if visible}
<p>hello!</p>
{/if}