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
<script>
import StepWizard from 'svelte-step-wizard'
</script>

<StepWizard initialStep={1}>
<StepWizard.Step num={1} let:nextStep>
<p>
This is the first step.
</p>
<button on:click={nextStep}>
Next Step >
</button>
</StepWizard.Step>
<StepWizard.Step num={2} let:previousStep let:nextStep>
<p>
Keep going.
</p>
<button on:click={previousStep}>
Go Back
</button>
<button on:click={nextStep}>
Next Step >
</button>
</StepWizard.Step>
<StepWizard.Step num={3} let:previousStep>
<p>
Done!
</p>
<button on:click={previousStep}>
Go Back
</button>
</StepWizard.Step>
</StepWizard>
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */