Stepper
The steps of a journey or a job: done steps checked, the current one traced by the Krizaka glyph (growing to its value), failures crossed, connectors that fill — and every state said in words.
- Domain
- Navigation & shell
- Support level
- Size
- 2.1 kB gzip, budget 2.0 kB
- Who uses it
- 8 files of the live products and sites import it (Verikora: 5, Sovkora: 1) Counted in the dated inventory of 2026-11-23.
import { Stepper } from "@krizaka/ui/stepper";Web and mobile — the same component for React and React Native. Beta: its API may still change in a minor version.
Why it is here. Used by Sovkora, Verikora.
When to use
- A job the user follows in steps: an upload that is checked, transcoded and published; a payout; an import.
- A short journey with a known order: a checkout, an onboarding (
orientation="horizontal"). - A history of what happened, in order (a timeline of a request).
When not to use
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { Stepper } from "@krizaka/ui/stepper";Examples
A job in steps
Uploaded, checked, transcoding (traced, with its Progress and ETA), then published.
A failed step
A cross, the danger colour, “Failed” in words — and the action that fixes it.
A short journey
orientation="horizontal": the connectors fill as it advances.
Props
An ordered list of steps: aria-current="step" on the current one, each state said in words.
| Prop | Type | Default | Description |
|---|---|---|---|
labelsrequired | Readonly<Record<StepStatus, string>> | — | What each state is called, read with every step (“Done”, “In progress”, “Upcoming”, “Failed”) — passed translated. |
stepsrequired | readonly Step[] | — | The steps, in order. |
current | number | 0 | The index of the current step: those before it are done, those after it upcoming (a step's own status wins). |
orientation | "horizontal" | "vertical" | vertical | vertical (a job, a timeline) · horizontal (a short journey, a checkout). |
Accessibility
- An ordered list (name it with
aria-label); the current step hasaria-current="step". - Each step's state is read with its title (
labels, translated): never colour alone. - Under
prefers-reduced-motionthe current glyph rests on a still frame and the connectors do not animate.
Best practices
- Name steps by what happens (“Transcoding”), with a line of detail (a size, a time).
- Put what the user can do or watch into the current or failed step's
content: a Progress with its ETA, a retry. - A failure says what went wrong and what to do next, in the step itself.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub