Skip to content

CycleRail

beta

A recurring loop of stages that does not end: a track of 2 to 8 stages, the live stage marked, and the return from the last stage to the first drawn with the cycle count on it

Orchestration/Storybook ↗
import { CycleRail } from "@danagraph/design-system/patterns"
Loading demo…

Props

stagesrequired
Type { id: string; label: string; description?: string }[]Default —

2 to 8 stages in loop order

currentStageIdrequired
Type stringDefault —

id of the live stage; if it matches no stage nothing is marked and the summary shows the cycle only

cyclerequired
Type numberDefault —

1-based count of the cycle in progress

label
Type stringDefault "Stage cycle"

Accessible name of the group

orientation
Type 'horizontal' | 'vertical'Default "horizontal"

Vertical stacks the stages and runs the return up the left side; use it at phone width

semantictypeborder
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?