Skip to content

<alta-secret-field> ​

A password field the page cannot read: the value goes only to the owner's server, once, and is cleared.

All components

States ​

The closed list data-state takes on the element.

  • empty
  • filled
  • invalid
  • sending
  • sent
  • unavailable

Other attributes ​

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

AttributeOnValues
data-focusthe elementpresent or absent

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-secret-change
  • alta-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

Alta OS is open source (MIT).