Password Input

Un campo password con un interruttore mostra / nascondi, come controllo di modulo.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: disponibile

Utilizzo

Other devices are signed out after the change.

Importazione

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

Riferimento API

SonePasswordInputComponentComponente

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`.

Selettore
sone-password-input
Input
NomeTipo Predefinito
valuebidirezionalestring""
visiblebidirezionale

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`