Skip to main content

CnProcessSteps

The step indicator of a journey, rendered with NL Design denhaag-process-steps classes. Colours come from Nextcloud's CSS variables, so the nldesign app re-themes it; no React design-system package is involved. The current, completed and upcoming steps are announced as text and with aria-current="step", not by colour alone.

Usage​

<CnProcessSteps :steps="steps" current="address" @select="goTo" />

Each step is { id, label, number?, navigable?, children? }. A step with children is a group with sub-steps one level deep; navigable: false makes it a heading rather than a button.

Props​

PropTypeDefaultDescription
stepsArray[]The steps to show.
currentString''Id of the current step or sub-step; steps before it are completed.
labelString"Progress"Accessible name of the indicator.

Events​

EventPayloadDescription
selectstep idA navigable step was chosen.

Slots​

None.