Skip to content
SENVENLI UI

Stepper

Shows progress through a multi-step flow or checklist, with done, current, waiting and failed steps.
A flow on one page
import { Stepper } from "@senvenli/react/navigation";

Examples

A vertical checklist

Each step has a line of detail: onboarding, setup.

A journey with statuses

Steps that wait on someone or failed say so in words and an icon.

Finished

With isComplete every step shows done and none is current.

Guidelines

When to use it

  • A flow of three or more steps: checkout, signup, setup.

Use something else when

  • Only the share done matters, not named steps. Progress
  • People move freely between views in any order. Tabs
  • The steps are past events. Timeline

Accessibility

Built in

  • The current step has aria-current; the list is named with the overall progress.

You provide

  • Short step names.

API reference

Stepper

stepsRequired
readonly StepperStep[]

Three to six steps, in order.

currentStepRequired
string

The step the reader is on: aria-current="step". Ignored with isComplete.

isComplete
boolean

The flow is finished: every step shows its done state and none is current, so no step carries aria-current. The list is named with the overall state ("Progress, All steps done"), and the narrow one-line form reads "All steps done" over a full bar. A step's status or statusText still speaks for it, in the list and, under the done line, in the narrow form too ("Domain · With us"). A finished flow cannot also have a failed or needs-you step: that pairing contradicts itself and warns in development; settle the step first. Left out, nothing changes.

onStepPress
(id: string) => void

Makes done steps pressable (back to an earlier step). Leave it out where the flow cannot go back.

orientation
"horizontal" | "vertical"

horizontal for a flow on one page (checkout, signup); vertical for checklists (onboarding, setup).

showStatus
boolean

Done and current steps say so in words too ("Done", "Now"), as on a journey across pages. On by default when any step has a status.

aria-label
string

Names the list; "Progress" by default.