devfolioco / react-otp-input

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

Add dynamic value for aria-lable <OTPinput> #366

Closed sagarsinha-code closed 1 year ago

sagarsinha-code commented 1 year ago

I want to change the value of aria-lable for input tag. Unfortunately not able to do so because its not getting passed as a props and its value is hardcoded.

Any solution for this will be helpful. Thanks

prateek3255 commented 1 year ago

This can now be done with v3, as you can pass your own input component. So you can override the currently passed aria-label to the component