Vue- tel-input - Vue.js Nourished #.\n\nvue-tel-input is actually an International Telephone Input vue 3 element.\n\nDocuments and also Trial.\nSee the site for complete doctors.\nVue 2 Help.\nvue-tel-input@legacy: Guide.\nChangelog.\nMost Likely To Github Releases.\nStarting.\n\nPut in the plugin:.\nnpm install vue-tel-input.\n\n\nInclude the plugin in to your app:.\nimport Vue from 'vue'.\nbring in VueTelInput coming from 'vue-tel-input'.\nimport 'vue-tel-input\/vue-tel-input. css'.\n\nconst app = createApp( App).\napp.use( VueTelInput).\napp.mount(' #app').\nExtra facts on installment.\n\n\nUse the vue-tel-input component:.\n\n\n\n\nInstallment.\nnpm.\nnpm install vue-tel-input.\nInstall the plugin in to Vue:.\nimport createApp from 'vue'.\nimport App from '.\/ App.vue'.\nimport VueTelInput coming from 'vue-tel-input'.\nimport 'vue-tel-input\/vue-tel-input. css'.\n\nconst globalOptions = \nsetting: 'vehicle',.\n.\n\nconst application = createApp( Application).\napp.use( VueTelInput, globalOptions)\/\/ Specify nonpayment international possibilities below (extra).\napp.mount('
app').View all readily available options in Props.Or utilize the part directly:.
CDN and Browser.If Vue is actually located in the Page, the plugin is actually set up automatically.** Otherwise, personally set up the plugin right into Vue:.app.use( home window [' vue-tel-input'].Part careless running.Considering that the library is about 200kb of JavaScript as well as 100kb of CSS in order to strengthen initial page loading opportunity you might think about importing it asynchronously simply when user browses to the web page where the collection is really required. The method is actually called Careless Lots and you can use it in some modern-day bundlers like Webpack and Rollup.
As you find, our company do not use Vue SFC tag right here to import component's css as it would cause CSS heading to the main/vendors pack instead of being downloaded as needed.