Components · Navigation
Stepper
Progress through a multi-step flow, with clickable steps that follow the order you allow.
import { Stepper } from '@nexub/react';Playground
Props
<Stepper aria-label="Sign-up steps" steps={steps} current={current} onStepChange={setCurrent} />Examples
Wizard with a form per step
Statuses and actions
`current={-1}` for "all done" is deprecated in 11.4 (removed in 12.0): use `status`. `nexub-migrate --rules deprecated-in-11` finds it.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| stepsrequired | StepperStep[] | — | The steps in order. |
| currentrequired | number | — | Deprecated. Index of the step being shown. |
| completed | number[] | every step before `current` | Finished steps. Defaults to every step before current. |
| onStepChange | ((index: number) => void) | — | Makes reachable steps buttons: finished ones and the first unfinished one. |
| nonLinear | boolean | false | Every step is reachable. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Vertical suits side columns and narrow screens. |
| aria-label | string | — | Names the navigation landmark, e.g. "Setup steps". |
| steps[].status | 'complete' | 'current' | 'upcoming' | 'error' | 'warning' | 'skipped' | 'cancelled' | — | 11.4: the step's state, named as in StatusSteps; read after the label. Wins over current and completed. |
| steps[].description | ReactNode | — | 11.4: any content (a date, a link). |
| steps[].actions | ReactNode | — | 11.4: actions under the step, e.g. Retry. |
Accessibility
Notes
A `nav` with an ordered list; the current step has `aria-current="step"`.
Each step reads "Step 2 of 4: Billing", plus "completed" when finished.
Validate each step with a Form and move `current` on its submit.
On iOS & Android: StepProgress
import { StepProgress } from '@nexub/react-native';
<StepProgress steps={steps} current={1} />Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Steps | Every step with its label; reachable steps are buttons. | Segments and "Step 2 of 4: Billing"; move with your screen’s Back and Continue. |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
StepProgress props
| Prop | Type | Default | Description |
|---|---|---|---|
| stepsrequired | { id: string; label: string }[] | — | — |
| currentrequired | number | — | Index of the step being shown. |
| completed | number[] | every step before `current` | Indexes of finished steps. |
| onStepChange | (index: number) => void | — | Makes steps tappable, called with the step's index. Linear by default: finished steps and the first unfinished one can be reached; the rest wait. |
| nonLinear | boolean | false | Any step can be reached with onStepChange, not only finished ones and the next. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | horizontal is the segmented bar with "Step 2 of 4: Billing". vertical lists every
step with its number (or a check when finished), joined by a line. |
| style | StyleProp<ViewStyle> | — | — |