Gathering detailed insights and metrics for vue3-tel-input
Gathering detailed insights and metrics for vue3-tel-input
Gathering detailed insights and metrics for vue3-tel-input
Gathering detailed insights and metrics for vue3-tel-input
International Telephone Input with Vue https://educationlink.github.io/vue-tel-input/
npm install vue3-tel-input
Typescript
Module System
Node Version
NPM Version
CSS (67.58%)
JavaScript (20.66%)
Vue (11.47%)
Shell (0.29%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
23 Stars
439 Commits
9 Forks
3 Branches
1 Contributors
Updated on Nov 08, 2024
Latest Version
1.0.4
Package Id
vue3-tel-input@1.0.4
Unpacked Size
2.78 MB
Size
739.36 kB
File Count
11
NPM Version
7.5.2
Node Version
14.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
International Telephone Input with Vue.
Install the plugin:
npm install vue3-tel-input
Add the plugin into your app:
1import { createApp } from 'vue' 2import App from './App.vue' 3import VueTelInput from 'vue3-tel-input' 4import 'vue3-tel-input/dist/vue3-tel-input.css' 5 6const app = createApp(App); 7app.use(VueTelInput); 8app.mount("#app");
Use the vue-tel-input
component:
1<template> 2 <vue-tel-input v-model="phone"></vue-tel-input> 3<template>
1 npm install vue3-tel-input
Install the plugin into Vue:
1 import { createApp } from 'vue' 2 import App from './App.vue' 3 import VueTelInput from 'vue3-tel-input' 4 import 'vue3-tel-input/dist/vue3-tel-input.css' 5 6 const VueTelInputOptions = { 7 mode: "international", 8 onlyCountries: ['NG', 'GH', "GB", "US", "CA"] 9 } 10 11 const app = createApp(App); 12 app.use(VueTelInput, VueTelInputOptions); // Define default global options here (optional) 13 app.mount("#app");
View all available options in Props.
Or use the component directly:
1<!-- your-component.vue--> 2<template> 3 <vue-tel-input v-model="phone" mode="international"></vue-tel-input> 4</template> 5<script> 6import { ref } from 'vue' 7import { VueTelInput } from 'vue3-tel-input' 8import 'vue3-tel-input/dist/vue3-tel-input.css' 9 10export default { 11 components: { 12 VueTelInput, 13 }, 14 15 setup() { 16 const phone = ref(null); 17 18 return { 19 value 20 } 21 } 22}; 23</script>
1<script src="https://unpkg.com/vue3-tel-input"></script> 2<link rel="stylesheet" href="https://unpkg.com/vue3-tel-input/dist/vue3-tel-input.css">
** If Vue is detected in the Page, the plugin is installed automatically.**
** Otherwise, manually install the plugin into Vue:
1Vue.use(window['vue-tel-input']);
Add a component using vue-form-generator
's abstractField
mixin
1 <!-- tel-input.vue --> 2 <template> 3 <vue-tel-input v-model="value"></vue-tel-input> 4 </template> 5 6 <script> 7 import { abstractField } from 'vue-form-generator'; 8 9 export default { 10 name: 'TelephoneInput', 11 mixins: [abstractField], 12 }; 13 </script>
Register the new field as a global component
1 import Vue from 'vue'; 2 import TelInput from '<path>/tel-input.vue'; 3 4 Vue.component('field-tel-input', TelInput);
Now it can be used as tel-input
in schema of vue-form-generator
1var schema: { 2 fields: [{ 3 type: "tel-input", 4 label: "Awesome (tel input)", 5 model: "telephone" 6 }] 7};
Read more on vue-form-generator
's instruction page
Copyright (c) 2018 EducationLink. Released under the MIT License.
made with ❤ by Victory Osayi initial source forked from Steven.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
98 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More