Closed arirah closed 1 year ago
Ok found the solution
customMask={['####
#####', '##### #####']}`
But need more specific details here
Hey @arirah
You can use the normal textInput prop maxLength
to do this. Check the example:
<PhoneInput
value={inputValue}
onChangePhoneNumber={setInputValue}
selectedCountry={selectedCountry}
onChangeSelectedCountry={setSelectedCountry}
maxLength={4} <--- ADD THIS
/>
🚀 AstrOOnauta 🚀
Hey @arirah
You can use the normal textInput prop
maxLength
to do this. Check the example:<PhoneInput value={inputValue} onChangePhoneNumber={setInputValue} selectedCountry={selectedCountry} onChangeSelectedCountry={setSelectedCountry} maxLength={4} <--- ADD THIS />
🚀 AstrOOnauta 🚀
You are right !
How to re set maxLength ?