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

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. Built on input-otp.

6-Digit Code (3 + 3)

–

4-Digit PIN

6 Digits (Single Group)

Click to focus, then type digits. The active slot shows a blinking caret. Use Backspace to delete. The separator provides a visual break between groups.