input-otp
input-otp copied to clipboard
Support pasting codes as "XXX-XXX"
Is your feature request related to a problem? Please describe. By my understanding, splitting a code into 2 parts is done for better user readability. This library supports and even suggests, configuring the input as "XXX-XXX". I think it's a problem that a code with a hyphen or space in the middle cannot be pasted into the field.
Describe the solution you'd like Accept pasting of "XXX-XXX" and "XXX XXX" (and possibly other formats)
Describe alternatives you've considered -
Additional context I can have a shot at implementing this if others agree that this makes sense.