コンポーネント
OTP入力
ワンタイムパスコードを入力するための分割ボックス。
使い方
基本
-
HTML
<bs:bsui-otp-input length="6" />4桁
短いコードで、中央に区切り文字が入ります。
-
HTML
<bs:bsui-otp-input name="pin" length="4" />ラベル付きフィールド
コードの送信先をヘルプテキストで伝えます。
-
We sent a six digit code to your phone.
HTML
<bs:bsui-field>
<bs:bsui-field-label text="Verification code" />
<bs:bsui-otp-input name="code" length="6" />
<bs:bsui-field-description text="We sent a six digit code to your phone." />
</bs:bsui-field>無効
再送信中は、すべての入力枠で入力を受け付けなくなります。
-
HTML
<bs:bsui-otp-input length="6" disabled="true" />属性
| 属性 | タイプ | デフォルト |
|---|---|---|
name | text | — |
length | number | 6 |
disabled | toggle | false |
nameAlt | text | — |
onChange | text | — |