Secret Field

Enter, save and clear a secret such as an API key, with a set / not set status.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: not available yet

Usage

API key Not set

Stored in the system keychain and never logged.

Workspace token Not set

Import

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

API reference

SoneSecretFieldComponentComponent

Selector
sone-secret-field
Inputs
NameType Default
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
Outputs
NameType
save

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

string
clearvoid