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").

Source on GitHub

Rounds of a timer
Previous Next
Another language: value-text

Announced «Asalto 3 de 8»: {step} and {count} are replaced, the numbers follow the page's language.

Sizes, colors and alignment

value is the current step from 0; value = count: all done.

Code

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.

PropertyAttributeTypeDefaultDescription
countcountnumber0Number of steps (dots).
valuevaluenumber0The current step, 0-based; count means every step is done.
colorcolor reflectsstringA palette color or any CSS color for done and current dots. Default: the primary color.
sizesize reflectsxs | sm | md | lg | xlsmSize of a dot.
alignalign reflectsstart | center | endcenterWhere the row sits in its width.
labellabelstringWhat 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.
valueTextvalue-textstringThe 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}".
doneTextdone-textstringThe announced text once every step is done (value = count), with {count}. Default: value-text, else "{count} of {count}, done".
PartDescription
dotsThe row.
dotEach dot ([data-state] done, current or todo).

Texts

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

KeyEnglish
step-dots.labelSteps
step-dots.value{label} {step} of {count}
step-dots.stepStep
step-dots.done{count} of {count}, done