A component can specify fallbacks for any slots that are left empty, by putting content inside the <slot> element:

<div class="box">
		<em>no content was provided</em>

We can now create instances of <Box> without any children:

	<p>This is a box. It can contain anything.</p>


loading editor...


loading Svelte compiler...

loading editor...

Compiler options

result = svelte.compile(source, {

loading editor...