react-otp-input
react-otp-input copied to clipboard
feat: Add `id` and `autoComplete` props
- 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

CC @apollonian @causztic. Let me know if you have any questions or if there is anything you'd like to change!
We have a published a new OTP input package right here. Please use this: https://www.npmjs.com/package/react18-input-otp
The inputs are now fully customizable with v3