Stepper · wizard
The steps of a flow — ticks that draw themselves, lines that fill as you pass, a current step that breathes, errors and optional steps, clickable history, vertical and compact looks, and panels that slide.
A wizard · click a done step to go back · panels slide
Create your account
Everything on this panel stays as it was when you come back to it.
Your profile
Going back slides this in from the left, going on from the right.
Invite your team
An optional step — skip it or add people now.
Confirm
Check everything, then create the workspace.
Vertical · compact
Usage
import { signal } from "./index.js";import { Stepper } from "./components/stepper.js"; const step = signal(0); // 0-based index of the current step // steps: labels, or { label, description, icon, optional, error (a getter) }// clickable: true (back to done steps) · "all"; panels slide in from the side you came fromStepper({ steps: [{ label: "Account", description: "Email & password" }, "Profile", "Confirm"], value: step, clickable: true, panels: [() => html`…`, () => html`…`, () => html`…`] }) Stepper({ steps, value: step, orientation: "vertical" }) // a timelineStepper({ steps, value: step, variant: "compact" }) // dots, one label