Closed atej closed 5 months ago
Hi! Could not reproduce the issue locally. Which version are you using?
Works in 0.3.31-beta
return (
<OTPInput
id="my-custom-input-id"
name="my-custom-input-name"
https://github.com/guilhermerodz/input-otp/assets/10366880/4c38948c-279b-4b4b-aecc-be95c4ef2928
Hey, yep it worked with the latest. Thank you. Great work!
When using within an HTML
<form>
I need anid
andname
attribute for the underlying input.Right now, I'm having to wrap the component and use an effect to accomplish this:
It'll be nice to have
id
andname
props that can be directly passed toOTPInput
.