Skip to content
GitHub (opens in a new tab)

ProgressSteps

Ordered wizard steps as numbered circles, each with a status word.

stableMoleculecontracts/progresssteps.json

Preview

ProgressSteps

Ordered steps for a required sequence, like a plan change or checkout. Each step shows a marker and a word: Done, Current, Upcoming, Error or Optional. Not Progress, Timeline or SetupGuide.

Master

Northwind changing from Starter to Growth, step 2 of 4. Click a Done step to go back. Add-ons is optional, so its marker is dashed.

Usage

A required sequence such as a plan change, checkout or a multi-step form. Done steps are buttons when you pass onStepClick. Upcoming steps are not. Put Back and Continue under it with kit Button: Back neutral, Continue the one primary. For a skippable first-run checklist use SetupGuide.

Do's

  • Checkout, onboarding, or multi-step forms
  • A required sequence the user walks through in order
  • Numbered steps with complete, current, and upcoming

Don'ts

  • A determinate percent 0 to 100 — use Progress
  • A vertical now/next/later roadmap — use Timeline
  • Peer views the user can switch freely — use Tabs
  • Paging a list or table — use Pagination
  • A first-run checklist people can skip or do in any order — use SetupGuide
<ProgressSteps
  current={1}
  onStepClick={(index) => setCurrent(index)}
  steps={[
    { id: "plan", label: "Plan", description: "Starter to Growth" },
    { id: "billing", label: "Billing", description: "Visa ending 4242" },
    { id: "addons", label: "Add-ons", description: "Extra seats", optional: true },
    { id: "review", label: "Review", description: "$48/mo from Dec 1" },
  ]}
/>

Ordered wizard steps as numbered circles with a connecting line and a status word under each label: Done, Current, Upcoming, Error, or Optional. Completed steps can be buttons. Horizontal switches to a compact Step n of m with a Progress bar in a narrow container. Vertical for side columns. One piece.

When to use

  • Checkout, onboarding, or multi-step forms
  • A required sequence the user walks through in order
  • Numbered steps with complete, current, and upcoming

When not to use

  • A determinate percent 0 to 100 — use Progress
  • A vertical now/next/later roadmap — use Timeline
  • Peer views the user can switch freely — use Tabs
  • Paging a list or table — use Pagination
  • A first-run checklist people can skip or do in any order — use SetupGuide

What an agent reads

import { ProgressSteps } from "agentic-ds-kit";
must
  • nav with aria-label Progress or ariaLabel
  • Ordered list of steps
  • Current step sets aria-current=step
  • Marker is aria-hidden; the visible status word matches the announcement: Done, Current, Upcoming, Error, or Optional, with step n of m
  • With onStepClick, completed steps are buttons whose name includes the step label; upcoming steps are not in the tab order
  • The compact Progress bar always has a text label
  • Reduced motion turns off the marker and line colour transition
defaults
  • current 0
  • orientation horizontal
  • size md
stops if
  • Do not invent StepItem, Stepper, ProgressStep, or Icon cousins
  • Do not use Progress for ordered wizard steps
  • Do not use Timeline for numbered checkout or onboarding steps
  • Do not use Tabs for a required sequence
  • Do not use ProgressSteps for a skippable first-run checklist — use SetupGuide
  • Do not make upcoming steps clickable
  • Do not put the Back and Continue footer inside ProgressSteps — compose it from kit Button, one primary
  • Do not use raw hex
  • Do not copy Untitled UI CSS or hex

From contracts/progresssteps.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
stepsarrayYes—{ id, label, description?, status?: complete|current|upcoming|error, optional? }[]. Status is derived from current when omitted. optional: an upcoming optional step gets a dashed marker and the word Optional.
currentnumberNo00-based index of the current step. Pass steps.length to mark every step complete.
orientationhorizontal | verticalNohorizontalhorizontal is the default. In a container narrower than 30rem it shows Step n of m, the current label, and a kit Progress bar labelled with the next step. vertical stacks marker, then copy, for a side column or drawer.
sizesm | mdNomdMarker is space-6 (sm) or space-8 (md).
ariaLabelstringNo—nav label. Defaults to Progress.
onStepClickfunctionNo—(index, step) => void. When set, completed steps become buttons named by their label. Upcoming steps stay inert and out of the tab order.
  • Component
    →

    Progress

    Task completion as a bar or circle from 0 to 100, or an indeterminate bar when the percent is not known.

  • Component
    →

    Timeline

    Vertical sequence of now, next, and later for ordered multi-stage work.

  • Component
    →

    Tabs

    Switch between related views in place.

  • Component
    →

    Pagination

    Page navigation with previous, next, page numbers, and ellipsis, plus optional first/last, a rows-per-page Select and a page or results status for table footers.