Skip to main content
App.svelte
Profile.svelte
<script>
	import Profile from "./Profile.svelte";
</script>

<Profile>
	<span slot="name">Bob</span>
	<span slot="email">bob@email.com</span>
</Profile>

<Profile>
	<span slot="name">Alice</span>
	<span slot="phone">12345678</span>
</Profile>
loading editor...

Console

loading Svelte compiler...
 
loading editor...

Compiler options

result = svelte.compile(source, {
generate:
});
 
loading editor...

No AST available

The AST is not public API and may change at any point in time