Description
react-international-phone is an international phone number input component for React. It gives users a country selector and a phone field in one control, so they can enter numbers in international format. The component guesses the user's country from the number they type, which saves them from choosing it manually. It handles caret position while the user types, so the cursor does not jump as formatting is applied, and it includes validation hooks so you can check whether a number is valid for the chosen country. The library is lightweight and easy to integrate into an existing form, and its styling can be customized with its own class names and props. The documentation site lists every country with its dialing code, including the calling codes for places such as Afghanistan, Brazil, Canada and Japan, which shows the scope of the built-in country list. The project is open source on GitHub, and the README links to the discussions board for questions.…
Highlights
- Country selector and phone field in one component
- Country guessing from the typed number
- Caret position handling while typing
- Validation for international numbers
- Lightweight and customizable
Ratings & Reviews
No ratings yet
Be the first to rate react-international-phone.
People also visit

react-telephone-input
React component for entering and validating international telephone numbers
react-international-phone FAQ
What is react-international-phone?
A React component for entering international phone numbers, with a country selector and a phone field.
Does it pick the country for the user?
Yes. It guesses the country from the number as it is typed.
Does it validate numbers?
The site lists validation as a feature, so you can check numbers for the chosen country.
Can I restyle it?
Yes. The README describes easy customization of the component.
Where is the source?
On GitHub at ybrusentsov/react-international-phone, with discussions for questions.
What are the best react-international-phone alternatives?
Popular alternatives to react-international-phone include react-telephone-input, react-native-phone-number-input and react-number-format. See all react-international-phone alternatives




















