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/validator/samples/component-slotted-custom-el.../input.svelte

15 lines
217 B

<script>
import Nested from './Nested.svelte';
let thing = false;
</script>
<Nested>
<custom-element>
<div>
<div slot='foo' />
</div>
{#if thing}
<div slot='bar' />
{/if}
</custom-element>
</Nested>