bx

Input OTP

Accessible one-time password component with copy paste functionality.

-
-
tsx
// src/components/ui/input-otp.tsx — render N slots as styled boxes over a single hidden input;
// the island mirrors keystrokes into the slots and moves focus. Supports copy-paste of the whole code.

Installation

Terminal
$ bext ui add input-otp
Try it live
Open in play

Edit this component live in the bext playground. The PRISM + signals version is the bext-native idiom — fine-grained reactivity, no virtual DOM.

src/app/page.tsx 2 files · signals · runs in your browser
Pure PRISM + real bext signals — fine-grained, no re-render.