Navigation
Stepper
Multi-step wizard navigation with completed, active and pending states.
<script>
import { Stepper } from "@codeatlasdev/ui";
let step = $state(0);
const steps = [{ label: "Account" }, { label: "Profile" }, { label: "Review" }];
</script>
<Stepper {steps} bind:current={step} />
The Stepper shows progress and each step bubble is a button that sets current when clicked. It does not render the step content or the Back and Next buttons. Drive current from your own form state, as in the demo.
Horizontal stepper
Four steps with Back and Next controls.
Step 1: Account
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps | StepItem[] | – | Array of { label, description? }. |
current | number | 0 | Bindable, zero-indexed active step. Earlier steps render as completed. |
class | string | '' | Extra CSS classes. |