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/runtime/samples/bitmask-overflow-slot-6/Slotted.svelte

16 lines
254 B

<script>
let open = false;
function toggle() {
open = !open;
}
</script>
<div on:click={toggle}>
<slot name="target" {open}></slot>
<!-- This actually isn't necessary to reproduce. -->
{#if open}
<slot name="content"></slot>
{/if}
</div>