-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Can we create a similar OTP component like shown in Base UI with @mui/material #45104
Comments
Hey @noobDev31, please provide a sandbox or repository with the code you're trying to make it work so we can have a look. Passing a ref to |
👋 Thanks for using this project! We use GitHub issues exclusively as a bug and feature requests tracker, however, this issue appears to be a support request. For support with Material UI please check out https://mui.com/material-ui/getting-started/support/. Thanks! If you have a question on Stack Overflow, you are welcome to link to it here, it might help others. |
Hi @aarongarciah,on the below Stackblitz link i get some issue related to select being undefined for me(mostly because i am not passing the ref properly) also on my local(attached image) I am not able to pass ref on the slotProps because it doesn't exist there https://stackblitz.com/edit/react-73e4p7qt?file=Demo.tsx,index.html |
Okay I think i need to pass it to inputRef root level prop also the all handlers on the root but still i get issues regarding select method not being defined on the targetIndex |
Okay using InputBase works for me |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @noobDev31 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Related page
https://mui.com/base-ui/react-input/#otp-input
Kind of issue
Unclear explanations
Issue description
Wanted to know the feasibility of creating OTP component using an OutlinedInput of mui/material
basically the only part i am struggling is passing the ref to the OutlinedInput of mui/material
Context
No response
Search keywords: OTP
The text was updated successfully, but these errors were encountered: