Skip to content

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

All components

States ​

The closed list data-state takes on the element.

  • idle
  • active
  • complete

Other attributes ​

On the element, or on a part (part: attribute). A list of values is closed.

AttributeOnValues
data-statestepdone, current, next, locked, skipped
data-kindstepconsent, value, signin, part, proof, require
data-proofstepmachine, word
data-opensteppresent or absent
data-freshsteppresent or absent
data-stateproofunread, checking, pass, fail, unverifiable, word, late
data-stateprogressidle, starting, running, waiting, stopping, proving, done, failed, cancelled, lost, undoing, undone

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-step-open
  • alta-step-done
  • alta-chain-complete
  • alta-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

Alta OS is open source (MIT).