Live demo
Demo source
Use a stepper to show progress through a linear task, such as onboarding or a multi-step form. The indicators identify completed, current and upcoming stages, while connectors show the progression between them. Your application controls when the flow advances.
Anatomy
A three-step flow with four callouts: 1 marks the first step's indicator, 2 its outgoing connector, 3 the current step's label, and 4 its description.
- Indicator presents the step's number, a dot, a completion check or an error mark.
- Connector joins neighbouring steps and reflects their progression.
- Label optionally names the stage.
- Description optionally adds supporting detail beneath the label.
Composing a flow
Place nv-stepper-item children directly in nv-stepper in sequence order.
Nova assigns their numbers and resolves the outer connector edges. Keep one
step current. Track the current stage in application state, then derive each
item's status from its position.
| Design setting | Component API |
|---|---|
| Steps | Default slot of nv-stepper, containing nv-stepper-item children |
| Progress | status="complete", "current" or "upcoming" on each item |
| Indicator content | content="number" or "dot" on the item |
| Completion check | checked on a complete item |
| Size | size on the container, inherited unless an item overrides it |
Use label and description for text, or the item's default and
description slots for content that needs markup. Use a slot in place of
its corresponding text property to avoid duplicate content.
Previous, Next, validation and submission belong to the surrounding application. The stepper presents progress; it has no activation or navigation behavior. Validate the current stage before allowing Next.
Status, errors and availability
complete marks a finished stage; current identifies the present stage;
upcoming is the default for a stage still ahead. Set error to call out a
blocking problem without changing that status. Error content takes priority
over a completion check, which in turn takes priority over a number or dot.
Checks appear only on completed steps.
disabled dims the indicator and text and removes any opt-in tab stop. It
keeps the item's number and place in the flow. Connectors keep their status
colours and full opacity through error and disabled states.
Sizes, layout and themes
Use md for the default 24 px indicator, sm for a 20 px indicator, and xs
for an 8 px status marker. The implemented xs presentation hides the
number, label and description; keep the current stage visible beside a
compact flow. The design reference retains text in its xs illustration,
so check this implementation difference when translating a design.
Current stage: Review
Steps share the available width and their indicators keep a fixed size. Keep stage names short and put longer explanations in descriptions. Only horizontal orientation is supported. All states follow Spark or Ocean in light and dark mode.
Accessibility and usage
Name the sequence with aria-label or aria-labelledby. The container
provides list semantics and each item is a list item, so assistive technology
can announce its position. The current item exposes aria-current="step".
Set locale on the parent for spoken state text; items may override it.
Steps stay outside the tab order by default. focusable lets an enabled
item receive focus for an application-managed flow; it does not add click
or arrow-key navigation. Use explicit error descriptions alongside the
indicator, and use completion checks when they help communicate progress.