Input OTP
One-time password input with individual digit slots, paste support, and arrow-key navigation.
Six-digit Code
Masked PIN
Set
mask
to render password-style slots, and use a shorter
length
for PIN entry.
Four-digit PIN
Grouped With Separator
Use
groups
with a
:separator
slot to build common verification-code groupings without repeating each slot.
Grouped
Auto-Verify On Complete
Pass an
on_complete
event name to fire a LiveView event the moment all slots are filled —
perfect for auto-submitting verification codes.
Auto-Verify
Invalid State
Pass
invalid=true
to mark all slots with
aria-invalid
and apply the destructive border/ring styling — use this when a code
fails verification.
Invalid