cv-steps
Controlled progress display for linear, step-based flows.
Headless: None (UIKit-only component)
Usage
Anatomy
text
<cv-steps>
└── <div part="base" role="list">
└── <slot> ← cv-step childrenAttributes
| Attribute | Type | Default | Description |
|---|---|---|---|
current | String | "" | Current step value |
orientation | "horizontal" | "vertical" | "horizontal" | Layout direction |
selectable | Boolean | false | Emits step selection events from enabled child cv-steps |
Child: cv-step
Attrs: value, status="pending|current|complete|error", disabled.
current is controlled by the parent cv-steps. Child status remains explicit: use complete, pending, and error to describe surrounding steps instead of expecting the component to infer progress.
Events
| Event | Detail |
|---|---|
cv-step-select | { value } |
cv-step-select fires only when selectable is set and the clicked step is enabled and has a value. Update current from the owning route/model after receiving the event.