UI図鑑
Inputs & Selection · 15 · 表示

OTP / PIN Code Field

認証コード入力(マス目入力)

otp_field デモ
OTP / PIN Code Field のデモ

ほかの呼び名

One-Time Code InputVerification Code FieldPIN InputPinput
Material 3
該当なし(M3 に無い)
Material 2
該当なし(M2 に無い)
Android (Compose)
該当なし(BasicTextField + 分割描画で自作)
iOS (HIG)
Digit entry views
SwiftUI
該当なし(TextField + .textContentType(.oneTimeCode))
Web
<input inputmode="numeric" autocomplete="one-time-code">
Flutter
自作(TextField + Row of boxes)/ pinput

概要

SMS 認証などで使う、桁ごとに区切られた入力欄。実体は1つの隠し TextField で、見た目だけマス目に分ける実装が多い。

使いどころ

SMS / メール認証コード、アプリロックの PIN。

関連