Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Vue.js
  3. vue-tel-input

vue-tel-input

MITCSSv9.8.0

A Vue.js component for entering and validating international telephone numbers with country flags and formatting.

Visit WebsiteGitHubGitHub
884 stars361 forks0 contributors

What is vue-tel-input?

vue-tel-input is a Vue.js component library for handling international telephone number inputs. It provides a customizable input field with country flags, automatic formatting, and validation to simplify collecting phone numbers in global applications.

Target Audience

Vue.js developers building applications with international user bases that require phone number input fields, such as registration forms, contact forms, or authentication systems.

Value Proposition

Developers choose vue-tel-input for its ease of integration with Vue, comprehensive international phone number handling, and customizable options without the complexity of building such functionality from scratch.

Overview

International Telephone Input with Vue

Use Cases

Best For

  • Adding international phone number inputs to Vue.js registration forms
  • Building contact forms with country-specific phone validation
  • Creating authentication systems that require phone number verification
  • Developing multi-regional applications with localized phone formats
  • Implementing user-friendly phone inputs with visual country flags
  • Handling phone number inputs in Vue 2 or Vue 3 projects

Not Ideal For

  • Projects where minimizing initial bundle size is critical, due to the 300kb combined asset footprint
  • Applications built with frameworks other than Vue.js, as it's tightly coupled to Vue's ecosystem
  • Teams wanting a fully pre-styled, drop-in component without any CSS integration work
  • Server-side rendered applications aiming for zero or minimal client-side JavaScript, given its heavy reliance on JS for formatting and detection

Pros & Cons

Pros

Comprehensive International Support

Automatically formats and validates phone numbers based on country-specific rules, with visual flags for easy identification, simplifying global input handling as highlighted in the README.

Auto Detection Features

Detects user's country via IP or browser locale to set a relevant default, improving user experience without manual configuration, as mentioned in the key features.

Vue 2 and 3 Compatibility

Supports both Vue versions with a legacy package (vue-tel-input@legacy), ensuring flexibility for different project setups, per the documentation.

Performance Optimization

Supports lazy loading to defer loading of the 200kb JS and 100kb CSS, improving initial page load times, with examples provided in the README.

Cons

Significant Bundle Size

The library adds 300kb of assets (200kb JS + 100kb CSS), which can negatively impact performance, especially in bandwidth-sensitive or mobile applications.

Setup Complexity

Requires manual CSS import and custom webpack configuration for lazy loading, not offering a seamless out-of-the-box experience, as shown in the installation instructions.

Framework Dependency

Locked into Vue.js, making it unsuitable for multi-framework projects or future migrations away from Vue, limiting its versatility.

Limited Advanced Features

Lacks built-in integrations like SMS verification or deep customization options, relying on basic props, which might not suffice for complex use cases.

Frequently Asked Questions

Quick Stats

Stars884
Forks361
Contributors0
Open Issues140
Last commit3 months ago
CreatedSince 2017

Tags

#hacktoberfest#phone-number-formatting#input#phone#vue-3#ui-components#phone-input#form-validation#javascript#country-flags#vue-2#vue#form-inputs#vue-component

Built With

V
Vue.js
J
JavaScript
C
CSS

Links & Resources

Website

Included in

Vue.js73.6k
Auto-fetched 1 day ago

Related Projects

tiptaptiptap

The headless rich text editor framework for web artisans.

Stars37,403
Forks3,038
Last commit2 days ago
vee-validatevee-validate

✅ Painless Vue forms

Stars11,262
Forks1,298
Last commit3 months ago
form-createform-create

:fire::fire::fire: 强大的低代码动态表单组件,通过JSON数据驱动表单渲染,适配移动端,支持可视化设计。提高开发者对表单的开发效率。目前在政务系统、OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。

Stars7,061
Forks1,098
Last commit12 days ago
vuelidatevuelidate

Simple, lightweight model-based validation for Vue.js

Stars6,884
Forks486
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub