svelte/test/custom-elements/samples/html-slots/main.svelte

12 lines
163 B

<svelte:options tag="custom-element"/>
8 years ago
<div>
<slot>
<p>default fallback content</p>
</slot>
<slot name='foo'>
<p>foo fallback content</p>
</slot>
</div>