OTP Input
A one-time-code (or PIN) input: a row of single-character boxes that behaves as one field. Type a digit and focus advances to the next box; press Backspace in an empty box to move back. Each box is individually labelled and the row has a group name, so it is navigable by keyboard and assistive technology.
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/otp-input.jsonConformance
This component conforms to the @publictheta/ui-spec otp-input specification. Run the suite against any implementation with pnpm conformance.