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

8 lines
112 B

<svelte:options customElement="custom-element" />
<script>
export let name;
</script>
<h1>Hello {name}!</h1>