Vue- tel-input - Vue.js Nourished #.\n\nvue-tel-input is actually an International Telephone Input vue 3 component.\n\nPaperwork and Trial.\nGo to the web site for full docs.\nVue 2 Help.\nvue-tel-input@legacy: Quick guide.\nChangelog.\nVisit Github Releases.\nBeginning.\n\nInstall the plugin:.\nnpm put up vue-tel-input.\n\n\nAdd the plugin into your app:.\nimport Vue from 'vue'.\nimport VueTelInput from 'vue-tel-input'.\nbring in 'vue-tel-input\/vue-tel-input. css'.\n\nconst application = createApp( App).\napp.use( VueTelInput).\napp.mount(' #app').\nA lot more information on setup.\n\n\nUtilize the vue-tel-input component:.\n\n\n\n\nInstallment.\nnpm.\nnpm put up vue-tel-input.\nSet up the plugin into Vue:.\nbring in createApp from 'vue'.\nimport App coming from '.\/ App.vue'.\nbring in VueTelInput coming from 'vue-tel-input'.\nimport 'vue-tel-input\/vue-tel-input. css'.\n\nconst globalOptions = \nmethod: 'automotive',.\n.\n\nconst application = createApp( Application).\napp.use( VueTelInput, globalOptions)\/\/ Define nonpayment global choices listed here (optionally available).\napp.mount('
app').Viewpoint all readily available options in Props.Or utilize the element directly:.
CDN as well as Web browser.If Vue is identified in the Web page, the plugin is actually installed automatically.** Or else, manually mount the plugin in to Vue:.app.use( home window [' vue-tel-input'].Element lazy filling.Given that the collection concerns 200kb of JavaScript and also 100kb of CSS if you want to boost initial web page filling time you could consider importing it asynchronously merely when customer gets through to the web page where the collection is really needed to have. The approach is actually called Lazy Bunch and you can easily utilize it in some modern-day bundlers like Webpack and also Rollup.
As you observe, our team do not use Vue SFC tag right here to import component's css as it would certainly result in CSS mosting likely to the main/vendors pack rather than being installed as needed.