Password Input

表示 / 非表示の切り替えボタン付きのパスワード入力欄。フォームコントロールとして使えます。

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

使い方

Other devices are signed out after the change.

インポート

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

API リファレンス

SonePasswordInputComponentコンポーネント

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

セレクター
sone-password-input
入力
名前型 デフォルト
value双方向string""
visible双方向

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`