Skip to content

<alta-resource-gate> ​

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

All components

States ​

The closed list data-state takes on the element.

  • ok
  • short
  • unmeasured

Other attributes ​

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

AttributeOnValues
data-asthe elementsentence, chips
data-keychipcpu, memory, disk, gpu, arch
data-shortchippresent 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

Alta OS is open source (MIT).