I am working on an application that requires users to input an SMS code for login. Below is a simplified example of what I need.
For better accessibility, I want the SMS code input to be just one <input>
in the HTML. I would also like to eliminate the code responsible for handling transitions between digits and simply duplicate them instead.
Is it feasible to achieve this with a single input field? If yes, how can it be done?
I prefer not to overlay DIVs directly on top of the input field for responsiveness reasons.
The app is built using react and MUI, but I can work with any HTML-CSS solution provided.