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/packages/svelte/tests/runtime-runes/samples/transition-snippet/Container.svelte

13 lines
238 B

<script>
/** @type {{ children: import('svelte').Snippet }} */
let { children } = $props();
let visible = $state(false);
</script>
<button onclick={() => visible = !visible}>toggle</button>
{#if visible}
{@render children()}
{/if}