guilhermerodz / input-otp

One time passcode Input. Accessible & unstyled.
https://input-otp.rodz.dev
MIT License
2.35k stars 47 forks source link

feat(input): provide container props #29

Closed fellipeutaka closed 5 months ago

fellipeutaka commented 5 months ago

Motivation:

When I used the shadcn form Input OTP example, I noticed that the input did not receive focus when clicking on the label because the id was a property passed on to both the container and the input itself. So I created a new optional prop called containerProps. I believe this is a breaking change due to the removal of the old containerClassName property.

shadcn Input OTP form example

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rodz-input-otp ❌ Failed (Inspect) Mar 8, 2024 10:30pm