# `<alta-resource-gate>`

> What a step needs of the machine (memory, disk, chip), as a sentence or chips.

What a step needs of the machine (memory, disk, chip), as a sentence or chips.

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

## States

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

- <span id="state-ok"></span>`ok`
- <span id="state-short"></span>`short`
- <span id="state-unmeasured"></span>`unmeasured`

## Other attributes

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

| Attribute | On | Values |
|---|---|---|
| `data-as` | the element | `sentence`, `chips` |
| `data-key` | `chip` | `cpu`, `memory`, `disk`, `gpu`, `arch` |
| `data-short` | `chip` | present or absent |

## Events

No event.

## Parts

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

`sentence` · `chip`

## Style it

```css
[data-aui="resource-gate"][data-state="unmeasured"] [data-part="sentence"] { /* … */ }
```

## Words it reads

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

`gate.`

## Files

`packages/ui/src/elements/resource-gate.ts` · `packages/ui/styles/components/forms.css`
