Stepper

A step wizard component that guides users through a multi-step process.

Install

npx @vultra/cli add stepper

Usage

<script>
  import { Stepper } from '@vultra/ui';

  let currentStep = $state(0);
</script>

<Stepper bind:currentStep>
  <Stepper.Step title="Account" description="Create your account">
    <p>Account form here</p>
  </Stepper.Step>
  <Stepper.Step title="Profile" description="Set up your profile">
    <p>Profile form here</p>
  </Stepper.Step>
  <Stepper.Step title="Confirm" description="Review and confirm">
    <p>Confirmation here</p>
  </Stepper.Step>
</Stepper>

Subcomponents

ComponentDescription
StepperContainer managing step state
Stepper.StepIndividual step with content
Stepper.NavigationOptional prev/next button bar

Step Props

PropTypeDefaultDescription
titlestring-Step title
descriptionstring-Step description
iconComponent-Custom step icon

Navigation Props

PropTypeDefaultDescription
prevLabelstring‘Back’Previous button text
nextLabelstring‘Next’Next button text
submitLabelstring‘Submit’Final step button text

Notes

  • Step indicator shows completed, active, and upcoming states.
  • Supports both controlled (bind:currentStep) and uncontrolled modes.