Stepper
When to use it
Section titled “When to use it”- Use type progress at the top of a flow with three to five steps, such as booking: Dates and guests, Your details, Extras, Payment, Confirm.
- Use type quantity to set a small number with − and +, such as Adults, Children and Rooms in the guests picker and filters.
- Use state at-min when the value is at its lowest (0 children, 1 adult) and at-max at its highest, so the button can’t go further.
When not to use it
Section titled “When not to use it”- For a flow of one or two steps: a page title is enough.
The Figma page names no alternative. - For a number that can be large or exact, such as a price: use a text field.
The Figma page names no alternative. - To show how far something has loaded: use Progressbar.
Instead: ProgressBar
Best practice
Section titled “Best practice”From the Figma documentation page (usage node 216:84), as written. These items aren’t carried into Stepper.intent.json, which has no field for them.
- Keep step labels to one to three words, and let people go back to a done step by clicking it.
- Mark every step before the current one as done; never skip ahead past an upcoming step.
- Give each counter a clear label, and say the limits nearby when they aren’t obvious, such as “Up to 8 guests”.
What each variant is for
Section titled “What each variant is for”| Property | Value | What it is for |
|---|---|---|
type |
progress |
the steps of a flow such as booking, 3 to 5 steps |
type |
quantity |
a − value + counter with a Label |
state |
default |
Figma doesn’t say. |
state |
at-min |
− disabled |
state |
at-max |
+ disabled |
type |
done |
blue tick |
type |
current |
blue number, bold label |
type |
upcoming |
outline |
Accessibility
Section titled “Accessibility”- type quantity is a role=“group” named by the label, with native <button> controls for − and +.
src/components/Stepper/Stepper.tsx:91 - The − and + buttons have their own accessible names (“Decrease <label>”, “Increase <label>”) because their icons are decorative.
src/components/Stepper/Stepper.tsx:101 - state at-min and at-max set the real disabled attribute on the − or + button, so it can’t be focused or activated.
src/components/Stepper/Stepper.tsx:102 - The counter value is an <output> with aria-live=“polite”, so a change is announced.
src/components/Stepper/Stepper.tsx:107 - type progress is an ordered list, and the current step carries aria-current=“step”.
src/components/Stepper/Stepper.tsx:143 - Connector lines and step circles are decorative (aria-hidden); the step label carries the name.
src/components/Stepper/Stepper.tsx:145 - A done step is a native <button> only when onStepClick is passed; otherwise it is plain text. Both buttons show the focus-border ring on :focus-visible.
src/components/Stepper/Stepper.tsx:147
What this version promises
Section titled “What this version promises”From Versioning (VERSIONING.md at b9ffb76):
0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.
Two things about this release are worth knowing:
- Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
- Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.
Stories
Section titled “Stories”Interactive
Section titled “Interactive”The single-variant stories (ProgressFiveSteps, ProgressFourSteps, ProgressThreeSteps, QuantityDefault, QuantityAtMin, QuantityAtMax, QuantityWithoutLabel) are cells of the variant matrix; the Design tab links each one.
Import
Section titled “Import”import { Stepper } from "@layerbasesystemic/horizon-design-system";import type { StepperProps, StepperType, StepperState, StepperStep, StepperStepState } from "@layerbasesystemic/horizon-design-system";@layerbasesystemic/horizon-design-system/tokens.css and @layerbasesystemic/horizon-design-system/styles.css must be loaded too; see Developing.
| Prop | Type | Default | Description |
|---|---|---|---|
type |
StepperType |
"progress" |
progress (default): the steps of a flow. quantity: a - value + counter. |
state |
StepperState |
"default" |
quantity only. default, at-min (- disabled) or at-max (+ disabled). |
label |
string |
"Adults" |
quantity only. Label beside the counter; also the counter’s accessible name. |
showLabel |
boolean |
true |
quantity only. |
value |
number |
— | quantity only. The number shown; defaults to the Figma example for the state (2, 0 or 8). |
onDecrement |
() => void |
— | — |
onIncrement |
() => void |
— | — |
steps |
StepperStep[] |
DEFAULT_STEPS |
progress only. Three to five steps; the Figma example is used when omitted. |
showStep4 |
boolean |
true |
progress only. Hide step 4 (and its connector). |
showStep5 |
boolean |
true |
progress only. Hide step 5 (and its connector). |
onStepClick |
(index: number) => void |
— | progress only. When set, done steps become buttons that call this with the step index. |
StepperProps also extends Omit<HTMLAttributes<HTMLElement>, "children" \| "onChange">, so native attributes pass through to the element (Stepper.tsx:25).
Union types
Section titled “Union types”StepperType: progress, quantity
StepperState: default, at-min, at-max
StepperStepState: done, current, upcoming
Tokens it needs
Section titled “Tokens it needs”Every CSS custom property Stepper.css reads, with its value in the token build at b9ffb76.
| Token | Light | Dark |
|---|---|---|
--border-width-md |
2px |
same as light |
--border-width-sm |
1px |
same as light |
--color-bg-elevated |
#f9fafb |
#4d5361 |
--color-border-default |
#d7dee7 |
#4d5361 |
--color-border-focus |
#1d44ba |
#6692f8 |
--color-border-strong |
#c8d2dd |
#6a7180 |
--color-border-subtle |
#eef1f5 |
#272a37 |
--color-primary-default |
#2b5ad6 |
#6692f8 |
--color-state-disabled-bg |
#e5e7ed |
#4d5361 |
--color-text-disabled |
#d1d5db |
#6a7180 |
--color-text-inverse |
#f9fafb |
#161925 |
--color-text-primary |
#161925 |
#f9fafb |
--color-text-secondary |
#4d5361 |
#9ca2b1 |
--fontfamily-body |
Inter |
same as light |
--fontsize-lg |
13px |
same as light |
--fontsize-sm |
11px |
same as light |
--lineheight-lg |
20px |
same as light |
--lineheight-sm |
16px |
same as light |
--radius-full |
999px |
same as light |
--radius-sm |
6px |
same as light |
--radius-xs |
2px |
same as light |
--spacing-md |
12px |
same as light |
--spacing-sm |
8px |
same as light |
This matches required_tokens in Stepper.intent.json exactly.
Figma node
Section titled “Figma node”Page Stepper (57:1646), documentation frame ❖ stepper (216:19), component set stepper (215:73). The file is shared with the team only, so the frame and the link ask anyone outside it to sign in.
The page also holds _stepper-step (215:15), which Figma describes as: “Internal part of stepper type=progress (not for direct use). One step: done (blue tick), current (blue number, bold label) or upcoming (outline).” Its Figma variants: state=done (215:2), state=current (215:7), state=upcoming (215:11).
Variant matrix
Section titled “Variant matrix”type (2) × state (3) = 6 combinations, of which Figma publishes 4 cells. The component set (215:73) publishes 4 variants, not the 6 that type x state would give: progress has only default; quantity has default, at-min and at-max. ShowLabel (quantity) and ShowStep4, ShowStep5 (progress) are boolean properties of the set, not variants. The step part _stepper-step (215:15) has its own state variants done (215:2), current (215:7) and upcoming (215:11). Figma draws no hover, pressed or focus state.
type |
state=default |
state=at-min |
state=at-max |
|---|---|---|---|
progress |
ProgressFiveSteps, ProgressFourSteps, ProgressThreeSteps215:16 |
not published in Figma | not published in Figma |
quantity |
QuantityDefault, QuantityWithoutLabel215:43 |
QuantityAtMin215:53 |
QuantityAtMax215:63 |
Each cell is the Storybook story for that combination and its Figma variant node. StepperType and StepperState are the union types listed on the Code tab. Figma publishes 4 of the 6 combinations: type=progress, state=at-min, type=progress, state=at-max are not published, so the matrix has no cell or story for them. The story that isn’t a single cell (Interactive) is embedded on the Examples tab.
Themes
Section titled “Themes”The stepper component set renders every cell once, in one theme. It has no separate light and dark frames.
The token build defines 179 tokens for light and redeclares 50 for dark; the Code tab shows Stepper’s tokens in both.
Values Figma never bound
Section titled “Values Figma never bound”Values on the Figma node that aren’t bound to a variable, and what Stepper.css at b9ffb76 does with each.
| Layer | Property | Figma value | In the code |
|---|---|---|---|
| Circle, every step state (215:3, 215:8, 215:12) | width | 20px |
width: 20px; |
| Circle, every step state (215:3, 215:8, 215:12) | height | 20px |
height: 20px; |
| Tick, state=done (215:4) | width | 12px |
width: 12px; |
| Tick, state=done (215:4) | height | 12px |
height: 12px; |
| Connector lines, type=progress (215:22, 215:28, 215:33, 215:38) | width | 32px |
width: 32px; |
| Stepper, type=quantity (215:43, 215:53, 215:63) | width (a fixed 280 in Figma; the code caps it with max-width 100%) | 280px |
width: 280px; |
| Minus and Plus buttons, type=quantity (215:46, 215:50 and the same layers in the other two states) | width | 28px |
width: 28px; |
| Minus and Plus buttons, type=quantity (215:46, 215:50 and the same layers in the other two states) | height | 28px |
height: 28px; |
| Minus and Plus icons, type=quantity (215:47, 215:51 and the same layers in the other two states) | width | 14px |
width: 14px; |
| Minus and Plus icons, type=quantity (215:47, 215:51 and the same layers in the other two states) | height | 14px |
height: 14px; |
| Value, type=quantity (215:49, 215:59, 215:69) | width | 20px |
width: 20px; |
| Disabled button, state=at-min Minus (215:56) and state=at-max Plus (215:70) | border colour (bound in Figma to the variable color/border/subtle, which is not named like a –color-… token; the code reads –color-border-subtle) | #eef1f5 |
border-color: var(--color-border-subtle); |
Figma variables against the token build
Section titled “Figma variables against the token build”| Figma variable | Figma value | Token in the build | Built light value | Agrees |
|---|---|---|---|---|
--color-text-inverse |
#f9fafb |
--color-text-inverse |
#f9fafb |
yes |
--radius-full |
999 |
--radius-full |
999px |
yes |
--color-primary-default |
#3b71f2 |
--color-primary-default |
#2b5ad6 |
no |
--color-text-secondary |
#4d5361 |
--color-text-secondary |
#4d5361 |
yes |
--fontSize-lg |
13 |
--fontsize-lg |
13px |
yes |
--fontWeight-regular |
Regular |
no such token | — | no token |
--fontFamily-body |
Inter |
--fontfamily-body |
Inter |
yes |
--lineHeight-lg |
20 |
--lineheight-lg |
20px |
yes |
--spacing-sm |
8 |
--spacing-sm |
8px |
yes |
--fontSize-sm |
11 |
--fontsize-sm |
11px |
yes |
--fontWeight-semibold |
Semi Bold |
no such token | — | no token |
--lineHeight-sm |
16 |
--lineheight-sm |
16px |
yes |
--color-text-primary |
#161925 |
--color-text-primary |
#161925 |
yes |
--color-border-default |
#d7dee7 |
--color-border-default |
#d7dee7 |
yes |
--border-width-sm |
1 |
--border-width-sm |
1px |
yes |
--color-bg-elevated |
#f9fafb |
--color-bg-elevated |
#f9fafb |
yes |
--color-border-strong |
#c8d2dd |
--color-border-strong |
#c8d2dd |
yes |
--spacing-md |
12 |
--spacing-md |
12px |
yes |
--radius-xs |
2 |
--radius-xs |
2px |
yes |
--fontWeight-medium |
Medium |
no such token | — | no token |
--color-text-disabled |
#d1d5db |
--color-text-disabled |
#d1d5db |
yes |
--color-state-disabled-bg |
#e5e7ed |
--color-state-disabled-bg |
#e5e7ed |
yes |
--fontWeight-regular, --fontWeight-semibold, --fontWeight-medium are bound in Figma but the token build has no token of that name.
1 colour variable in Figma still holds a different value from the token build, so the design file and the shipped component render --color-primary-default differently.
Design gaps recorded against it
Section titled “Design gaps recorded against it”- 2026-10-05 · Stepper sizes with no token (decisions.md). These literals in src/components/Stepper/Stepper.css are accepted, because they are what the Figma node specifies, until the designer adds matching size tokens. Accepted values:
20px(width, height,.hz-stepper__circle, lines 53, 54);12px(width, height,.hz-stepper__tick, lines 66, 67);32px(width,.hz-stepper__connector, line 83);280px(width,.hz-stepper--quantity, line 97);28px(width, height,.hz-stepper__button, lines 118, 119);14px(width, height,.hz-stepper__icon, lines 138, 139);20px(width,.hz-stepper__value, line 143);2px(outline-offset,.hz-stepper__button:focus-visible, line 44). Not ruled: Any other literal value, including a var() fallback. These values in any other component. A change to these values: a different number needs a new ruling or a token. The selected colour, which uses –color-primary-default (#2b5ad6) and differs from the #3b71f2 Figma shows: that is accepted pipeline drift, not a gate finding. The inline SVG tick and plus/minus icons, which approximate Figma’s image assets. Any state Figma does not draw (hover, pressed).
Every commit to src/components/Stepper up to b9ffb76, newest first, with the published version that carries it.
| Commit | Date | Version | Change |
|---|---|---|---|
e79120e |
2026-10-05 | 0.2.1 | Stepper: build from Figma 57:1646 (progress + quantity) |