Wizard
v1.0.9Updated 27 Aug 2026Multi-step form shell composing the Stepper: clickable step header, WizardStep content panels, and a Back/Next/Finish footer. Next/Finish run the current step's validate() (sync or async) — a string result renders as an
Preview
Live · 7 stories▸Why this is recommendedwizardmulti-stepformstepper+4
The default, out-of-the-box Wizard.
- ✓Workspace/company onboarding flows
- ✓Multi-step settings or setup (tax profile, bank account)
- ✓Checkout-style confirm flows with a review step
- ✓Any form too long for one page
- Composes Stepper header (completed steps clickable, roving-tabindex arrows)
- Per-step sync/async validate — string result shows inline role="alert" error
- Step state (active / done / error) reflected into the Stepper header
- Controlled and uncontrolled activeStep
- Linear vs free navigation modes
- Configurable Back / Next / Finish labels (i18n-ready)
- Async onFinish with loading button state
- Focus moves to the step heading on change, announced via aria-live
- WizardSummary / WizardSummaryItem review pane with jump-back Edit buttons
- useWizard hook for custom step content
- Sizes sm / md; prefers-reduced-motion respected
- ✕Progress display without navigation (use Stepper alone)
- ✕Simple two-field forms (use FormSection)
- ✕Page-level route-driven flows (own the state and use controlled mode)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
stepsOrdered step defs: { id, title, description?, icon?, optional?, validate? }
yesactiveStepControlled active step index
—defaultActiveStepUncontrolled initial step index (default 0)
—onActiveStepChangeFires on any navigation
—onFinishCalled after the last step validates; async shows loading
—modelinear: header only jumps back to visited steps; free: any step clickable
—labelsFooter button labels
—sizeDensity of heading, spacing and footer buttons
—alternativeLabelStepper labels centered under the circles
—