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

feat: Add `id` and `autoComplete` props

Open robframpton opened this issue 3 years ago • 2 comments

  • What does this PR do?

Adds id and autoComplete props that are passed down to inputs. Changes are backwards compatible and won't break current implementations.

id allows proper use of form labels

autoComplete allows optimization for various environments: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#sect16

  • Screenshots and/or Live Demo

react_otp_input_label

robframpton avatar Mar 18 '22 19:03 robframpton

CC @apollonian @causztic. Let me know if you have any questions or if there is anything you'd like to change!

robframpton avatar Mar 18 '22 19:03 robframpton

We have a published a new OTP input package right here. Please use this: https://www.npmjs.com/package/react18-input-otp

ritikbanger avatar Aug 14 '22 11:08 ritikbanger

The inputs are now fully customizable with v3

prateek3255 avatar Mar 26 '23 07:03 prateek3255