Input OTP
Accessible one-time password component with copy paste functionality.
-
-
// 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
$ bext ui add input-otp
Copy and paste the following into src/components/ui/input-otp.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.
On This Page