Controls
Input OTP
One-time codes: grouped slots, paste and SMS autofill.
npx shadcn-svelte@latest add http://localhost:5173/r/input-otp.json Six digits, 3 + 3
Type, paste a whole code, or accept the SMS suggestion (autocomplete=one-time-code). Each character fades and scales in; the active slot shows a caret and the focus halo.
light
We sent it to •••• 0142. Try 123456.
dark
We sent it to •••• 0142. Try 123456.
Variants
light
4 digits
Letters + digits
A
7
K
Invalid
4
8
2
9
1
3
Disabled
1
2
3
4
dark
4 digits
Letters + digits
A
7
K
Invalid
4
8
2
9
1
3
Disabled
1
2
3
4