Rebar UI

1.0

synthetic

Steps

Where you are in a sequence.

Release pathHorizontal and vertical
  1. BriefMaya Chen
  2. Design24 Oct
  3. ReviewPriya Nair
  4. Ship25 Oct
  1. BriefMaya Chen
  2. Design24 Oct
  3. ReviewPriya Nair
  4. Ship25 Oct
Error
  1. BriefMaya Chen
  2. Design24 Oct
  3. ReviewPriya Nair
Complete
  1. BriefMaya Chen
  2. Design24 Oct
  3. ReviewPriya Nair
Clickable

In context

New projectA wizard's progress on a phone
New project

Step 2 of 4

  1. Name
  2. Crew
  3. Dates
  4. Review

Props

PropTypeRequiredDefault
itemsStepItem[]Yes—
currentnumber | undefinedNo0
direction"horizontal" | "vertical" | undefinedNohorizontal
classNamestring | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—
onItemClick((index: number) => void) | undefinedNo—
connectorboolean | undefinedNotrue

Accessibility

current (an index) derives each step's status: before it "finish" (✓), at it "process", after it "wait"; the active step is marked aria-current="step". Any item can set its own status (including "error"). With onItemClick every step is a real button.

data-rebar-* attributes

data-rebar-component="steps", data-rebar-direction, data-rebar-part="item" | "icon" | "content", data-rebar-status="wait" | "process" | "finish" | "error" on each item.

Migrating to Ant Design

AntD's Steps takes the same items/current/direction shape almost verbatim. Not yet codemod-covered.