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/documentation/examples/15-composition/02-named-slots/App.svelte

13 lines
202 B

<script>
import ContactCard from './ContactCard.svelte';
</script>
<ContactCard>
<span slot="name"> P. Sherman </span>
<span slot="address">
42 Wallaby Way<br />
Sydney
</span>
</ContactCard>