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

The steps of a quest in order: the one to do now open, those done folded, those to come shown but closed.

[All components](https://docs.altasystem.ai/ui/components/)

## States

The closed list `data-state` takes on the element.

- <span id="state-idle"></span>`idle`
- <span id="state-active"></span>`active`
- <span id="state-complete"></span>`complete`

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

- <span id="event-alta-step-open"></span>`alta-step-open`
- <span id="event-alta-step-done"></span>`alta-step-done`
- <span id="event-alta-chain-complete"></span>`alta-chain-complete`
- <span id="event-alta-require-open"></span>`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>`](https://docs.altasystem.ai/ui/components/narrator-line) · [`<alta-plan-card>`](https://docs.altasystem.ai/ui/components/plan-card) · [`<alta-agreement>`](https://docs.altasystem.ai/ui/components/agreement) · [`<alta-run-progress>`](https://docs.altasystem.ai/ui/components/run-progress) · [`<alta-proof-badge>`](https://docs.altasystem.ai/ui/components/proof-badge) · [`<alta-signin>`](https://docs.altasystem.ai/ui/components/signin) · [`<alta-choice-group>`](https://docs.altasystem.ai/ui/components/choice-group) · [`<alta-values-form>`](https://docs.altasystem.ai/ui/components/values-form) · [`<alta-secret-field>`](https://docs.altasystem.ai/ui/components/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`
