Stepper

A React component in Beamline's Navigation category, in the free sample.

Where someone is in a multi-step flow: done steps carry a check, the current one a ring, and the line between marks fills as steps complete.

Use it for

  • Multi-step flows such as onboarding or checkout.
  • Stages of a record (deal stages) with onStepSelect.

Not for

  • Switching views (tabs).
  • Progress of a background job (progress).

Anatomy

  • list
  • mark (number / check; a done mark is an accent solid, the current one an accent ring, upcoming a hairline ring)
  • connector (between marks, never under them)
  • label
  • description (two lines at most)
  • narrow caption (n/total, current label and description)
  • status line
  • meta (a line of facts under a step's label)

Variants

  • orientation: horizontal, vertical
  • details: all, current
  • compact: false, true

States

  • done
  • current
  • upcoming
  • complete
  • narrow horizontal (under ~480px, ~350px compact): marks only in the row, the current step said under it; a mark pointed at or focused shows its name under it; names stay readable to screen readers
  • failed (a step's status: red cross, red ring, said "failed")
  • blocked (a step's status: orange pause, said "blocked")

Keyboard

  • With onStepSelect each step is a button

Motion

The connector fills over --pui-duration-considered (360 ms) on the standard ease. A mark that becomes done grows its check from the middle (--pui-motion-in); the step that becomes current draws its ring in from a full disc (--pui-duration-standard). With details="current" the new current step's description grows in (.enter-grow) so the steps after it glide down. The narrow caption says the new step in place (a fade). A mark press is acknowledged at once. Reduced motion: instant, the fades kept.

Props

PropTypeDefaultDescription
steps{ id, label, description? }[]—
currentnumber (steps.length = complete)—Index of the step in progress; steps before it are done. steps.length means all are done.
onStepSelect(index) => void—Makes every step a button (jump back to edit, or move a record between stages).
orientation / details / compactstring / string / boolean—
completeLabelstring"Complete"Said after the last step once everything is done. Default "Complete".
style / refCSSProperties / native Ref—style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default.
classNamesStepperClassNames—Classes for the named visual parts; no overrides by default.
steps[].status"failed" | "blocked"—steps[].status: A step that did not go as planned, whatever its place: "failed" (it ran and did not succeed: a red cross) or "blocked" (it cannot go on until something happens, an answer, a payment: an orange pause). Said in words too.
steps[].metaReactNode—steps[].meta: One short line of facts under the label: when it ran, how long it took ("09:42 · 4 s").
orientationStepperOrientation—
details"all" | "current"—Descriptions for every step, or only the current one. Default "all".
compactboolean—Smaller marks and text, for side panels.
labelstring—The list's name. Default "Progress".
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no overrides by default.
refRef<HTMLDivElement>—Receives the documented native target or imperative handle; omitted by default.

Used in

Dependencies

lucide-react

Import

import { Stepper } from "@beamline/stepper";

Get it

Stepper is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Stepper is included in the free MIT sample. Get Beamline · Connect your agent

More in Navigation

  • Sidebar: The app's main navigation: sections, items with counts and one level of sub-pages, an icon rail with tooltips (⌘B, the trigger or the edge), and a sheet…
  • Tree view: Nested folders and records with the full tree keyboard model (arrows, Home/End, *, type to jump), depth guides, counts and animated opening.
  • Table of contents: The sections of a long page beside it, with the one being read marked as you scroll: the marker travels down the rail between sections, the rail fills…
  • Tabs: Switches between panels of one object; one indicator slides to the active tab, counts sit beside labels, and the tabs a row has no room for fold into More.
  • Navigation menu: A site or docs header whose sections open into one panel that resizes and slides between them; NavigationMenuCard is the standard link row.
  • Menu bar: A desktop-style File / Edit / View bar for editor-like apps; each menu takes the same rows as the dropdown menu, and pointing moves between open menus.
  • Pagination: Moves through pages of a known length: first, last and the current page's neighbours, with an optional “41–60 of 468”. It answers to its own room…
  • User menu: The account menu behind the avatar: who is signed in, status, theme, account pages and sign out with progress; a bottom sheet on phones.
  • Breadcrumb: Where a page sits and the way back up; it shows as many levels as its room holds and folds the ones nearest the top into a menu.

Guides: Give your coding agent a component system

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.