DEV Community

Discussion on: Create a passcode component from scratch in React

Collapse
 
soanvig profile image
Mateusz Koteja

Just use normal input with letter-spacing and create a mask over it in CSS in whatever way. It will be simpler, and handle everything as it should.

Collapse
 
neil585456525 profile image
Neil Chen • Edited

It might will be a little bit not convenient to add border, radius , other styles and put a dash in the middle of the sentence.