devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React
http://devfolioco.github.io/react-otp-input
MIT License
657 stars 427 forks source link

feat: Add `id` and `autoComplete` props #339

Closed robframpton closed 1 year ago

robframpton commented 2 years ago

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

react_otp_input_label

robframpton commented 2 years ago

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

ritikbanger commented 2 years ago

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

prateek3255 commented 1 year ago

The inputs are now fully customizable with v3