English
<alta-step-chain>
The steps of a quest in order: the one to do now open, those done folded, those to come shown but closed.
States
The closed list data-state takes on the element.
idleactivecomplete
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-state | step | done, current, next, locked, skipped |
data-kind | step | consent, value, signin, part, proof, require |
data-proof | step | machine, word |
data-open | step | present or absent |
data-fresh | step | present or absent |
data-state | proof | unread, checking, pass, fail, unverifiable, word, late |
data-state | progress | idle, starting, running, waiting, stopping, proving, done, failed, cancelled, lost, undoing, undone |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-step-openalta-step-donealta-chain-completealta-require-open
Parts
Every node you can style, as [data-part="…"].
list · step · track · mark · connector · step-main · step-head · step-words · step-title · step-value · step-seal · step-body · step-why · locked-reason · values · plan · progress · proof · signin · choices · consent · require · confirm · check-row · check · check-note
Slots
Children with slot="…" replace or add to these places.
step:<id> · after
Draws inside itself
<alta-narrator-line> · <alta-plan-card> · <alta-agreement> · <alta-run-progress> · <alta-proof-badge> · <alta-signin> · <alta-choice-group> · <alta-values-form> · <alta-secret-field>
Style it
css
[data-aui="step-chain"][data-state="complete"] [data-part="list"] { /* … */ }Words it reads
Keys of the string tables (override them on <alta-provider>).
chain.
Files
packages/ui/src/elements/step-chain.ts · packages/ui/styles/components/chain.css