Stepper

A task in steps (Mantine's Stepper): a wizard, a checkout, an onboarding. Numbers or icons, labels, connectors, the content of the active step; loading and error states; completed steps can be revisited.

Source on GitHub

A checkout
Standard · freeExpress · $9
2 × Pro seats
$2,499.00
Total
$2,499.00
Order placedA receipt is on its way to ada@ray.dev.Start over
Back Next
Vertical, with a step in progress

Compiled 42 modules.

All tests passed.

ray-remote-1.27.39-macos-arm64.dmg · 64%

Not started.

Labels under the numbers, sizes, colors
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-stepper>

The steps are a labelled list; the active one has aria-current="step" and each reads "Step 2 of 4: Shipping, completed". Only the active step's content shows; past the last step, the completed slot.

PropertyAttributeTypeDefaultDescription
activeactive reflectsnumber0Index of the active step (steps.length: completed).
orientationorientation reflectshorizontal | verticalhorizontalSteps in a row above the content, or in a column beside it.
iconPositionicon-position reflectsstart | top | leftstartLabel beside the number (after it in the reading direction), or under it (narrow screens, many steps). "left", its former name, still works.
allowStepSelectallow-step-select reflectsbooleanCompleted steps are buttons that go back to them.
linearlinearbooleantrueWith allow-step-select off, false lets the user jump to any step.
sizesize reflectssm | md | lgmdSize of the numbers.
colorcolor reflectsstringA palette color or any CSS color for active and completed steps (default: primary).
labellabelstringProgress (text stepper.label)Accessible name of the list of steps.
EventDescription
changeactive changed by the user (a step clicked, next(), prev()).
SlotDescription
(default)ray-step elements.
completedShown once every step is done.
PartDescription
stepsThe list of steps.
stepA step (also step-done, step-active, step-todo).
indicatorA step's number or icon.
labelA step's label.
descriptionA step's description.
connectorThe line between steps.
contentThe content area.

<ray-step>

A step: its header is drawn by the stepper, its content shows while it is active.

PropertyAttributeTypeDefaultDescription
labellabelstringThe label.
descriptiondescriptionstringA line under the label.
iconiconstringAn icon instead of the number.
completedIconcompleted-iconstringThe icon once done (default: check).
loadingloading reflectsbooleanA spinner instead of the number.
errorerrorstringAn error message: red step, the message as its description.
disableddisabled reflectsbooleanCannot be selected.
SlotDescription
(default)The content shown while it is active.

Texts

What it writes itself, in English; setStrings() translates them (Getting started: Languages).

KeyEnglish
stepper.labelProgress
stepper.stepStep {index}
stepper.positionStep {index} of {count}: