[ Data Display ]
StepList & StatusIcon
StatusIcon shows a task state at a glance; StepList strings steps together with a connector rail, dividers and optional meta text.
2 examplesDark modeAccessible
Import#
import { StepList, StatusIcon } from 'reusify-ui';When to use#
- Job and pipeline runs, onboarding checklists, deploy steps and AI agent progress.
Examples#
Step list#
- Map resources
- Calculate blast radius
- Simulate risks
- Analyze signals
<StepList
items={[
{ title: 'Map resources', status: 'complete', meta: 'Done' },
{ title: 'Calculate blast radius', status: 'running' },
{ title: 'Simulate risks', status: 'queued' },
{ title: 'Analyze signals', status: 'pending' },
]}
/>Status icons#
running spins (not under reduced motion), partial draws a progress arc, error shows a cross.
running
queued
pending
partial
complete
error
<StatusIcon status="running" />
<StatusIcon status="queued" />
<StatusIcon status="pending" />
<StatusIcon status="partial" progress={30} />
<StatusIcon status="complete" />
<StatusIcon status="error" />Used in designs#
StepList & StatusIcon in real layouts: this design uses it. Open one to try it and copy the code.
API reference#
<StepList />
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ title, description?, status, progress?, meta?, key? }> | - | The steps in order. |
connector | boolean | true | Draw the rail between icons. |
dividers | boolean | true | Lines between steps. |
items-Array<{ title, description?, status, progress?, meta?, key? }>The steps in order.
connectortruebooleanDraw the rail between icons.
dividerstruebooleanLines between steps.
<StatusIcon />
| Prop | Type | Default | Description |
|---|---|---|---|
status | 'running' | 'queued' | 'pending' | 'partial' | 'complete' | 'error' | 'pending' | State to draw. |
progress | number | 50 | Arc percent for partial. |
size | number | 20 | Size in px. |
label | string | - | Accessible name (defaults to the state, e.g. "In progress"). |
status'pending''running' | 'queued' | 'pending' | 'partial' | 'complete' | 'error'State to draw.
progress50numberArc percent for partial.
size20numberSize in px.
label-stringAccessible name (defaults to the state, e.g. "In progress").
Accessibility#
- StatusIcon is role="img" with a readable state label.
- The running step gets aria-current="step".