RetroInputOTP

A one-time password input with Mac OS 9 beveled digit slots and blinking caret.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-input-otp.json"

Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).

Import

import { RetroInputOTP } from "@/components/ui/retro-input-otp"

A one-time password input with OS9 styling. Each digit appears in a beveled input slot with a blinking caret. One real input sits under the slots, so paste, autofill and undo work as usual.

6-Digit Code (3 + 3)

4-Digit PIN

6 Digits (Single Group)

Click to focus, then type or paste digits. The active slot shows a blinking caret; click a filled slot or use the arrow keys to edit it. The separator provides a visual break between groups.