
Description
vue-phone-number-input is a Vue component for entering phone numbers. It formats numbers as the user types and checks whether the number is valid, using libphonenumber-js. The README notes that the plugin is unmaintained, and it points users to the maz-ui versions instead: MazPhoneNumberInput in maz-ui v2.x for Vue 2, and in maz-ui v3.x for Vue 3. The features list covers the country picker. You can set preferred countries, ignored countries, or limit the list to only some countries. When the number is valid, the input turns green, and this colour can be changed with the valid-color option or turned off with no-validator-state. The country code can come from the browser locale, which can be turned off with no-use-browser-locale, or from an IP lookup with fetch-country, which needs network access. A default-country-code option sets one directly.…
Highlights
- Formats and validates phone numbers
- Country picker with preferred or only countries
- Keyboard navigation and search
- Browser or IP-based country detection
Ratings & Reviews
No ratings yet
Be the first to rate vue-phone-number-input.
People also visit

react-telephone-input
React component for entering and validating international telephone numbers
vue-phone-number-input FAQ
What is vue-phone-number-input?
A Vue component for entering and formatting phone numbers, with validation through libphonenumber-js.
Is it still maintained?
No. The README says the plugin is unmaintained, and points to the maz-ui MazPhoneNumberInput component for Vue 2 and Vue 3.
How do I install it?
Use yarn add vue-phone-number-input or npm i --save vue-phone-number-input.
Can I limit the countries?
Yes. The README lists preferred-countries, ignored-countries and only-countries options.
Can I turn off the browser country detection?
Yes. Use no-use-browser-locale, or set a default-country-code instead.
What are the best vue-phone-number-input alternatives?
Popular alternatives to vue-phone-number-input include vue-tel-input, react-international-phone and react-telephone-input. See all vue-phone-number-input alternatives


















