-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OtpInput] Add a hook, support OTP/ PinInput usePinInput
#75
Comments
👍 Let's wait for the community upvotes so we can prioritize this. |
usePinInput
usePinInput
I have added a few benchmarks. 2FA grew in popularity recently, and so did this component. I wonder about the impact passwordless (biometric, passkey, device, email link) authentification will have though. |
It would be great to have this in Material UI as well, not only here in Base UI. |
@michaldudak before we transfer issues, we need to create the labels. We loose all of that data otherwise. |
usePinInput
usePinInput
The email link flow has the downside of a poor user experience if the device they are using to read the email and the device they are trying to login with are different. The alternative flow is one where a pin is emailed and entered the same way as an OTP could potentially become more common. That's actually the exact scenario that prompted me to make the web search that included this page as a result. |
Summary
I believe it would be fantastic to introduce a base-ui hook specifically designed for handling OTP inputs.
Chakra already offers a
PinInput
component along with a headless UI hook in their Zag library (https://zagjs.com/components/react/pin-input).Examples
No response
Motivation
No response
Search keywords:
Features to support
990312
on mobile should fill the whole component.<input>
.Benchmarks
The text was updated successfully, but these errors were encountered: