English
<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.
States
The closed list data-state takes on the element.
idlereadyinvalidagreeingagreeddeclinedrefuseddisabled
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-ask | ask | capability, permission, signin, service, repair |
data-new | ask | present or absent |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-agreealta-agreedalta-declinealta-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