One-time Code
FREEPaste-aware OTP input that auto-advances.
React 19Tailwind 4added 2026-11-15
live preview · one-time code
try pasting 42069
Installation
Into your bowl in one line.
The CLI drops the source straight into your project. You own every line; there’s no package to update.
- 01
Add it with the CLI
$ npx bowls@latest add otp-input - 02
Serve it
Paste the source into
components/bowls/otp-input.tsxand import it — the Code tab’s demo.tsx shows a full example.
Props
| PROP | TYPE | DEFAULT | WHAT IT DOES |
|---|---|---|---|
| length | number | 6 | Number of digits. |
| onComplete | (code: string) => void | — | Called when every box is filled. |
| label | string | "One-time code" | Group label for screen readers. |