English
<alta-secret-field>
A password field the page cannot read: the value goes only to the owner's server, once, and is cleared.
States
The closed list data-state takes on the element.
emptyfilledinvalidsendingsentunavailable
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-focus | the element | present or absent |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-secret-changealta-secret-enter
Parts
Every node you can style, as [data-part="…"].
label · input · hint · error · reveal
Style it
css
[data-aui="secret-field"][data-state="unavailable"] [data-part="label"] { /* … */ }Words it reads
Keys of the string tables (override them on <alta-provider>).
secret.
Files
packages/ui/src/elements/secret-field.ts