Uh oh!
There was an error while loading. Please reload this page.
feat(input-otp): add new input-otp component - #30386
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
exorex
commented
May 2, 2025
Thank you, @brandyscarney, for your work on this component. One feature suggestion: pressing CTRL+A (or CMD+A on macOS) inside the component could select and clear all input fields at once. This would align with common input behavior and improve UX for users needing to re-enter their code quickly. Example: https://input-otp.rodz.dev/ |
thetaPC
left a comment
There was a problem hiding this comment.
No issues found with core and Angular. I'm waiting on React and Vue to be ready for review.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue number: internal
What is the current behavior?
In order to re-create an OTP Input component users have to custom style an
<ion-input>, possibly multiple, to get the design and functionality they want.What is the new behavior?
ion-input-otpwhich provides the OTP input functionalitytypewhich determines whether the boxes accept numbers or text/numbers and determines the keyboard to displayinputmodepropertylengthproperty to control the number of input boxesfill,shape,size,colorseparatorsproperty to show a separator between 1 or more input boxesdisabled,readonlyand invalid statespatternpropertyionInput,ionChange,ionComplete,ionBlur,ionFocussetFocusDoes this introduce a breaking change?
Other information
Previews
Documentation