Skip to content
IndexRequest a UIAboutContact

Stepper Wizard

A four-step flow with a connecting progress line, completed ticks and Back/Next buttons.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Design a four-step wizard header with numbered circles connected by a line: Account, Address, Payment, Review. The current step is filled near-black with white number, completed steps show a check mark, upcoming steps are outlined grey. The line between steps fills with black as progress advances. Below the header show a short panel with the current step title and placeholder text, and Back / Next buttons; Next becomes "Finish" at the end and then shows "All done". Use aria-current="step" on the active item, an aria-live region announcing "Step 2 of 4: Address", Back disabled on step one. Light minimal style; 300 millisecond line fill with prefers-reduced-motion fallback. Plain HTML, CSS and JavaScript.

About this pattern

Definition

A stepper breaks a long task into numbered stages and shows where you are. Completed steps get a check, the current step is highlighted and the remaining steps are muted.

Purpose & UX principles

  • Use for checkout, sign-up and setup flows with a fixed number of ordered steps.
  • Keep each step short; allow going back without losing data; label steps with nouns ("Address", "Payment").
  • Mark the current step with aria-current="step" and announce the step change.

Interaction states

  • Upcoming, current, complete; Back disabled on step one; Next becomes "Finish" on the last step; a final done state.

Motion specification

  • The connecting line fills over 300ms; the current marker scales 1.1 briefly.
  • Reduced motion: line and marker change instantly.

Responsive behaviour

  • On narrow screens show only the current step name and "Step 2 of 4" instead of every label.
  • Keep Back and Next at the bottom, thumb-reachable.

Code

HTML
<div class="bx"><ol class="st" id="st"></ol><div class="pn" id="pn" aria-live="polite"></div><div class="act"><button id="bk" type="button">Back</button><button id="nx" type="button">Next</button></div></div>

Related patterns

Breadcrumb

↗
BreadcrumbNavigation

Pagination

↗
PaginationNavigation

Progress Indicator

↗
Progress IndicatorLoading & Progress