svelte-step-wizard
v0.0.2
Published
simple svelte step wizard component
Downloads
1,161
Readme
svelte-step-wizard
Simple Svelte step wizard component
Install
npm i svelte-step-wizard
Example
<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>