Skip to content

Input OTP

Segmented one-time-code input over a hidden TextInput.

Terminal window
npx github:truongnat/rnui#cli add input-otp

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/input-otp.json # or /uniwind/
components/ui/input-otp.tsx
// See the source file for the API:
  • components/ui/input-otp.tsx

Installs together with: utils, text, theme