English
<alta-signin>
A sign-in with a tool: a link, a device code, an e-mail, a secret, or the tool's own window.
States
The closed list data-state takes on the element.
idleplanningreadystartingwaitingcheckingprovingdonefailedexpiredcancelledblockedunavailable
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-kind | the element | link-code, device-code, email-link, secret, tool-browser |
data-wait | the element | link, code, device, email, tool |
data-problem | the element | refused, incomplete, local, address, verification |
data-block | the element | screen, missing, first, card |
data-state | kind | picked |
data-index | kind | any |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-signin-statealta-open-linkalta-signin-donealta-signin-failedalta-signin-switch
Parts
Every node you can style, as [data-part="…"].
why · tool · title · product · kind-switch · kind · lead · link-row · link · link-host · device · code · copy · code-form · code-row · code-field · submit · problem · timer · foot · stop · email · terminal · show-window · alternative · progress · proof · plan · agreement · note · again
Slots
Children with slot="…" replace or add to these places.
help · after
Draws inside itself
<alta-plan-card> · <alta-agreement> · <alta-proof-badge> · <alta-secret-field>
Style it
css
[data-aui="signin"][data-state="unavailable"] [data-part="why"] { /* … */ }Words it reads
Keys of the string tables (override them on <alta-provider>).
signin. · ui.copy · ui.copied
Files
packages/ui/src/elements/signin.ts · packages/ui/styles/components/signin.css