79615483

Date: 2025-05-10 12:43:03
Score: 1
Natty:
Report link

I have found the answer by looking at the code!

The PhoneNumberInput component has a countries option, which can be used to restrict the list of countries.

For instance:

<PhoneInput
   placeholder="Phone #"
   value={phone}
   countries={["US","CA","IE","GB"]}
   defaultCountry="US"
   onChange={keyChangeHandler}/>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gabriela