OTP Input
One-time password / PIN input. Auto-advances to the next digit on entry, handles backspace, and distributes pasted codes across inputs. Powered by the OtpInput enhancer.
6-digit OTP
Current value:
(empty)4-digit PIN
8-digit code with separator
—
Programmatic API
Events
| Event | Fires when | event.detail |
|---|---|---|
lp:otp-input:change | Any input changes | { value } |
lp:otp-input:complete | All digits are filled | { value } |