Explore / React

OTP / PIN Input

Medium · React

What to build

Build a 6-box OTP input like you see after a login. Typing a digit moves focus to the next box, Backspace moves it back, and pasting a 6-digit string fills all boxes at once.

Build it in the browser editor on GrindPrep (desktop) and compare with the reference solution.