A step-by-step progress indicator with numbered, icon, and bullet variants in horizontal or vertical layouts.
import {Stepper} from "@heroui-pro/react";
<Stepper>
<Stepper.Step>
<Stepper.Indicator>
<Stepper.Icon /> {/* Optional: replaces the step number */}
</Stepper.Indicator>
<Stepper.Content>
<Stepper.Title />
<Stepper.Description /> {/* Optional */}
</Stepper.Content>
<Stepper.Separator />
</Stepper.Step>
</Stepper>;HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The Stepper component uses these CSS classes:
.stepper: Base root container (ol element).stepper__step: Individual step wrapper (li element).stepper__step-button: Interactive button inside each step.stepper__indicator: Circle badge showing step number or icon.stepper__content: Wrapper for title and description.stepper__title: Step title text.stepper__description: Step description text.stepper__icon: Icon wrapper inside the indicator.stepper__separator: Connector line container between steps.stepper__separator-track: Background rail of the separator.stepper__separator-fill: Colored progress overlay inside the track.stepper--sm: Small size (22px indicator, 12px vertical gap).stepper--md: Medium size (28px indicator, 16px vertical gap, default).stepper--lg: Large size (36px indicator, 24px vertical gap).stepper__indicator--sm / .stepper__indicator--md / .stepper__indicator--lg: Indicator text sizing.stepper__title--sm / .stepper__title--md / .stepper__title--lg: Title text sizing.stepper__description--sm / .stepper__description--md / .stepper__description--lg: Description text sizing.stepper--horizontal: Horizontal layout.stepper--vertical: Vertical layout.stepper__step--horizontal / .stepper__step--vertical: Orientation-specific step layout.stepper__step-button--horizontal / .stepper__step-button--vertical: Orientation-specific button layout.stepper__content--horizontal / .stepper__content--vertical: Orientation-specific content alignment.stepper__separator--horizontal / .stepper__separator--vertical: Orientation-specific separator positioning.stepper__separator-track--horizontal / .stepper__separator-track--vertical: Track sizing.stepper__separator-fill--horizontal / .stepper__separator-fill--vertical: Fill animation direction[data-clickable="true"]:hover on .stepper__step-button (indicator opacity change)[data-clickable="true"]:active on .stepper__step-button (opacity reduction):focus-visible on .stepper__step-button (focus ring)[data-status="inactive"] / [data-status="active"] / [data-status="complete"] on .stepper__indicator and .stepper__step: Step status[data-clickable] on .stepper__step-button: Whether the step is interactive[data-complete] on .stepper__separator-track: Whether the separator is fully filled--stepper-indicator-size: Size of the indicator circle (set by size modifier)--stepper-separator-size: Thickness of the separator line (default 2px)--stepper-vertical-gap: Gap between vertical steps (set by size modifier)--stepper-active-color: Color for the active step (default: accent)--stepper-complete-color: Color for completed steps (default: accent)--stepper-complete-fg: Foreground color for completed indicator (default: accent-foreground)--stepper-inactive-border: Border color for inactive indicator (default: border)--stepper-inactive-fg: Text color for inactive indicator (default: muted)--stepper-separator-progress: Progress value (0-1) controlling separator fillThe root component. Renders an ol element with step progress tracking.
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction |
size | 'sm' | 'md' | 'lg' | 'md' | Size variant |
currentStep | number | - | The current active step index (controlled) |
defaultStep | number | 0 | The initial step index (uncontrolled) |
onStepChange | (step: number) => void | - | Callback when a step is clicked; makes steps interactive when provided |
children | ReactNode | - | Stepper steps |
Also supports all native ol HTML attributes.
A single step wrapper. Renders an li element and provides step context to children.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Step content (Indicator, Content, Separator, etc.) |
Also supports all native li HTML attributes.
The circle badge showing a step number, icon, or checkmark.
Defaults:
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Custom content overriding the default number/checkmark |
className | string | - | Additional CSS class |
Flex wrapper for title and description.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Title and description elements |
Also supports all native span HTML attributes.
Step title text.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Title text |
Also supports all native span HTML attributes.
Step description text.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Description text |
Also supports all native span HTML attributes.
Icon wrapper rendered inside the indicator.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Icon element |
Also supports all native span HTML attributes.
Connector line between steps. Automatically hidden on the last step.
| Prop | Type | Default | Description |
|---|---|---|---|
progress | number | - | Explicit progress value (0-1). Auto-computed from currentStep when omitted |
force | boolean | false | Force rendering even on the last step |
Also supports all native div HTML attributes.
Hook to access per-step context from any descendant of Stepper.Step.
Returns:
| Property | Type | Description |
|---|---|---|
index | number | Zero-based step index |
status | 'inactive' | 'active' | 'complete' | Current step status |
isLast | boolean | Whether this is the last step |
Resources