OtpField
- from @ouro
A one-time code entry on the Field contract: one slot per character, with focus that moves as the person types, a whole code pasted at once, and `autoComplete="one-time-code"` so phones offer the code from a text message.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @ouro/otp-fieldComponent source
No live preview has been built for this component yet.
Registry dependencies6
- @ouro/field
- @ouro/lib-env
- @ouro/lib-page-direction
- @ouro/lib-refs
- @ouro/lib-use-dev-messages
- @ouro/lib-use-field