Secret Field

Inserisci, salva e cancella un segreto, come una chiave API, con uno stato impostato / non impostato.

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

Utilizzo

API key Not set

Stored in the system keychain and never logged.

Workspace token Not set

Importazione

ts
import {
  SoneSecretFieldComponent,
} from "@surface-one/angular/secret-field";

Riferimento API

SoneSecretFieldComponentComponente

Selettore
sone-secret-field
Input
NomeTipo Predefinito
hasKeyboolean | nullnull
busybooleanfalse
errorstring | nullnull
label—$localize`Status`
placeholderstring""
ariaLabelstring | nullnull
helpstring | nullnull
setLabel—$localize`Key set ✓`
unsetLabel—$localize`Not set`
saveLabel—$localize`Save key`
autocompletestring"off"
clearablebooleanfalse
Output
NomeTipo
save

The parent must not log or store this outside the Keychain.

string
clearvoid