# `<alta-condition>`

> The state of an installed chart (ready, drifted, repairing, failed…), as a dot, a tag or a line.

The state of an installed chart (ready, drifted, repairing, failed…), as a dot, a tag or a line.

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

## States

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

- <span id="state-unknown"></span>`unknown`
- <span id="state-unsupported"></span>`unsupported`
- <span id="state-blocked"></span>`blocked`
- <span id="state-needs-input"></span>`needs-input`
- <span id="state-planned"></span>`planned`
- <span id="state-running"></span>`running`
- <span id="state-ready"></span>`ready`
- <span id="state-drifted"></span>`drifted`
- <span id="state-repairing"></span>`repairing`
- <span id="state-failed"></span>`failed`

## Other attributes

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

| Attribute | On | Values |
|---|---|---|
| `data-size` | the element | `dot`, `tag`, `line` |
| `data-reason` | the element | any |

## Events

Dispatched on the element, bubbling. Listen with `addEventListener`.

- <span id="event-alta-condition-action"></span>`alta-condition-action`

## Parts

Every node you can style, as `[data-part="…"]`.

`mark` · `word` · `reason` · `since` · `action`

## Style it

```css
[data-aui="condition"][data-state="failed"] [data-part="mark"] { /* … */ }
```

## Words it reads

Keys of the string tables (override them on `<alta-provider>`).

`condition.` · `reason.`

## Files

`packages/ui/src/elements/condition.ts` · `packages/ui/styles/components/step.css`
