Skip to main content

Stepper

Walks a user through a fixed sequence of steps, one at a time. Stock Mantine Stepper, with a thinner, stroke-based check icon on completed steps and a distinct look for the in-progress step versus a finished one.

Base
Mantine + override
Import
{ Stepper } from '@mantine/core'
Source
src/themes/theme.ts
src/themes/style-overrides/stepper.module.css

Usage​

active
React
<Stepper active={1}>
<Stepper.Step label="Prosjekt" description="Opprett prosjekt" />
<Stepper.Step label="Detaljer" description="Fyll inn detaljer" />
<Stepper.Step label="Fullfør" description="Send inn" />
</Stepper>

Props​

Only what this design system changes. Everything else is Mantine's — read the full props table there.

PropertyTypeAllowed valuesDefaultDescription
completedIconReactNode | StepFragmentComponent—<IconCheck size={IconSize.md} stroke={2.5} />Mark shown on a finished step. Set in theme.ts to a stroke-based Tabler icon because Mantine's own check is a filled path and cannot be thinned via CSS.
Step icon, rest (stepInactive)———Not a prop. Filled --mantine-color-warm-grey-1 background, --mantine-color-warm-grey-2 border, ordinary text colour.
Step icon, in progress (data-progress)———Not a prop. Filled with --mantine-color-accent; icon/number flips to the inverted token (white in both schemes) for contrast against the fill.
Step icon, completed (data-completed)———Not a prop. Outlined rather than filled — --mantine-color-surface-grey background, --mantine-color-accent border and check-icon colour — so a finished step reads as done without competing with the active step's fill.

Accessibility​

Each Stepper.Step renders as a <button>. If a step has no visible label or description — an icon-only step, for instance — give it its own aria-label or title, or it will not be announced by a screen reader.

Keyboard support is Mantine's: Tab / Shift+Tab move focus between the steps that are actually clickable, Space / Enter activates the focused one, and a step that isn't currently clickable (governed by allowStepSelect / allowNextStepsSelect) is skipped in the Tab order rather than landing on a step it can't activate.