input-otp icon indicating copy to clipboard operation
input-otp copied to clipboard

Support pasting codes as "XXX-XXX"

Open necky2 opened this issue 8 months ago • 5 comments

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.

necky2 avatar Jun 14 '24 16:06 necky2