Vue- tel-input - Vue.js Feed #.\n\nvue-tel-input is actually an International Telephone Input vue 3 part.\n\nDocumentation as well as Trial.\nSee the internet site for full doctors.\nVue 2 Assistance.\nvue-tel-input@legacy: Guide.\nChangelog.\nVisit Github Releases.\nStarting.\n\nSet up the plugin:.\nnpm install vue-tel-input.\n\n\nIncorporate the plugin right into your application:.\nbring in Vue from 'vue'.\nimport VueTelInput from 'vue-tel-input'.\nbring in 'vue-tel-input\/vue-tel-input. css'.\n\nconst application = createApp( Application).\napp.use( VueTelInput).\napp.mount(' #app').\nA lot more details on installation.\n\n\nUtilize the vue-tel-input element:.\n\n\n\n\nInstallation.\nnpm.\nnpm put in vue-tel-input.\nMount the plugin right into Vue:.\nimport createApp coming from 'vue'.\nbring in App coming from '.\/ App.vue'.\nimport VueTelInput from 'vue-tel-input'.\nbring in 'vue-tel-input\/vue-tel-input. css'.\n\nconst globalOptions = \nmethod: 'car',.\n.\n\nconst application = createApp( App).\napp.use( VueTelInput, globalOptions)\/\/ Define nonpayment worldwide alternatives here (optionally available).\napp.mount('
app').Perspective all available options in Props.Or utilize the component straight:.
CDN and also Internet browser.If Vue is actually identified in the Webpage, the plugin is put in instantly.** Typically, by hand put in the plugin into Vue:.app.use( home window [' vue-tel-input'].Part careless launching.Considering that the library concerns 200kb of JavaScript and also 100kb of CSS so as to improve first web page filling opportunity you could take into consideration importing it asynchronously simply when individual navigates to the webpage where the public library is in fact needed. The technique is actually knowned as Lazy Tons as well as you may utilize it in some modern-day bundlers like Webpack as well as Rollup.
As you observe, our team do not make use of Vue SFC tag below to import element's css as it would lead to CSS going to the main/vendors bundle rather than being actually downloaded on demand.