Skip to content

<alta-agreement> ​

The owner's yes to a plan, with what it asks for (a capability, a permission, a sign-in). Nothing runs before it.

All components

States ​

The closed list data-state takes on the element.

  • idle
  • ready
  • invalid
  • agreeing
  • agreed
  • declined
  • refused
  • disabled

Other attributes ​

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

AttributeOnValues
data-askaskcapability, permission, signin, service, repair
data-newaskpresent or absent

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-agree
  • alta-agreed
  • alta-decline
  • alta-refused

Parts ​

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

action · again · alternative · decline · note · summary · title · lead · asks · ask · ask-kind · ask-name · ask-why · actions

Slots ​

Children with slot="…" replace or add to these places.

before-action · legal

Style it ​

css
[data-aui="agreement"][data-state="disabled"] [data-part="action"] { /* … */ }

Words it reads ​

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

agree. · secret.unavailable · run.retry

Files ​

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

Alta OS is open source (MIT).