Secret Field

API キーなどのシークレットを入力・保存・消去し、設定済み / 未設定のステータスを表示します。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 未対応

使い方

API key Not set

Stored in the system keychain and never logged.

Workspace token Not set

インポート

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

API リファレンス

SoneSecretFieldComponentコンポーネント

セレクター
sone-secret-field
入力
名前型 デフォルト
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
出力
名前型
save

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

string
clearvoid