Step dots
A row of dots, one per step: done, current, to do. A compact progress for rounds, onboarding pages or a quiz; announced as a progressbar ("Round 4 of 12").
Announced «Asalto 3 de 8»: {step} and {count} are replaced, the numbers follow the page's language.
value is the current step from 0; value = count: all done.
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-step-dots> · RayStepDots
Dots before value are done (filled), the one at value is current (a filled pill), the rest are to do (empty). Not interactive: for steps the user picks, use ray-stepper (or the dots of ray-carousel). Many dots wrap onto more lines.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
count | count | number | 0 | Number of steps (dots). |
value | value | number | 0 | The current step, 0-based; count means every step is done. |
color | color reflects | string | A palette color or any CSS color for done and current dots. Default: the primary color. | |
size | size reflects | xs | sm | md | lg | xl | sm | Size of a dot. |
align | align reflects | start | center | end | center | Where the row sits in its width. |
label | label | string | What a step is called: "Round" is announced "Round 4 of 12" and names the element. Default: Step (named Steps). In another language, use value-text. | |
valueText | value-text | string | The announced text, {step} (the current one, from 1) and {count} replaced, numbers in the page's language: value-text="Asalto {step} de {count}". Default: "<label> {step} of {count}". | |
doneText | done-text | string | The announced text once every step is done (value = count), with {count}. Default: value-text, else "{count} of {count}, done". |
| Part | Description |
|---|---|
dots | The row. |
dot | Each dot ([data-state] done, current or todo). |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
step-dots.label | Steps |
step-dots.value | {label} {step} of {count} |
step-dots.step | Step |
step-dots.done | {count} of {count}, done |