Password Input

Ein Passwortfeld mit Ein-/Ausblenden-Schalter, als Formularsteuerelement.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: verfügbar

Verwendung

Other devices are signed out after the change.

Import

ts
import {
  SonePasswordInputComponent,
} from "@surface-one/angular/password-input";

API-Referenz

SonePasswordInputComponentKomponente

A password field with a show / hide toggle, on the Input Group. The toggle is a toggle button: a constant name ("Show password") and `aria-pressed`.

Selektor
sone-password-input
Inputs
NameTyp Standard
valuebidirektionalstring""
visiblebidirektional

Shows the password as plain text (`[(visible)]`).

booleanfalse
autocompletePasswordAutocomplete"current-password"
placeholderstring""
inputIdstring | nullnull
namestring | nullnull
ariaLabelstring | nullnull
ariaDescribedby

Extra ids for `aria-describedby` on the input.

string | nullnull
invalidbooleanfalse
disabledbooleanfalse
readonlybooleanfalse
toggleLabel

The toggle's accessible name; its state is `aria-pressed`.

—$localize`Show password`