Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
Features.svelte
<script>
import Features from './Features.svelte';
</script>

<Features>
<div slot="feature1">功能介紹 1</div>
<div slot="feature2">功能介紹 2</div>
</Features>

<!-- wrapper -->
<Features>
<div slot="feature1">
<div>功能介紹 1</div>
<div>功能介紹 1.1</div>
</div>
<div slot="feature2">
<div>功能介紹 2</div>
<div>功能介紹 2.1</div>
</div>
</Features>

<!-- svelte:fragment -->
<Features>
<svelte:fragment slot="feature1">
<div>功能介紹 1</div>
<div>功能介紹 1.1</div>
</svelte:fragment>
<svelte:fragment slot="feature2">
<div>功能介紹 2</div>
<div>功能介紹 2.1</div>
</svelte:fragment>
</Features>


loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */