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.
- 2 × Pro seats
- $2,499.00
- Total
- $2,499.00
Compiled 42 modules.
All tests passed.
ray-remote-1.27.39-macos-arm64.dmg · 64%
Not started.
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.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
active | active reflects | number | 0 | Index of the active step (steps.length: completed). |
orientation | orientation reflects | horizontal | vertical | horizontal | Steps in a row above the content, or in a column beside it. |
iconPosition | icon-position reflects | start | top | left | start | Label beside the number (after it in the reading direction), or under it (narrow screens, many steps). "left", its former name, still works. |
allowStepSelect | allow-step-select reflects | boolean | Completed steps are buttons that go back to them. | |
linear | linear | boolean | true | With allow-step-select off, false lets the user jump to any step. |
size | size reflects | sm | md | lg | md | Size of the numbers. |
color | color reflects | string | A palette color or any CSS color for active and completed steps (default: primary). | |
label | label | string | Progress (text stepper.label) | Accessible name of the list of steps. |
| Event | Description |
|---|---|
change | active changed by the user (a step clicked, next(), prev()). |
| Slot | Description |
|---|---|
| (default) | ray-step elements. |
completed | Shown once every step is done. |
| Part | Description |
|---|---|
steps | The list of steps. |
step | A step (also step-done, step-active, step-todo). |
indicator | A step's number or icon. |
label | A step's label. |
description | A step's description. |
connector | The line between steps. |
content | The content area. |
<ray-step>
A step: its header is drawn by the stepper, its content shows while it is active.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
label | label | string | The label. | |
description | description | string | A line under the label. | |
icon | icon | string | An icon instead of the number. | |
completedIcon | completed-icon | string | The icon once done (default: check). | |
loading | loading reflects | boolean | A spinner instead of the number. | |
error | error | string | An error message: red step, the message as its description. | |
disabled | disabled reflects | boolean | Cannot be selected. |
| Slot | Description |
|---|---|
| (default) | The content shown while it is active. |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
stepper.label | Progress |
stepper.step | Step {index} |
stepper.position | Step {index} of {count}: |