Vue- tel-input - Vue.js Nourished #.\n\nvue-tel-input is actually an International Telephone Input vue 3 component.\n\nDocumentation and also Demo.\nExplore the website for full docs.\nVue 2 Support.\nvue-tel-input@legacy: Guide.\nChangelog.\nGo to Github Launches.\nGetting started.\n\nPut up the plugin:.\nnpm mount vue-tel-input.\n\n\nInclude the plugin in to your application:.\nimport Vue from 'vue'.\nimport VueTelInput coming from 'vue-tel-input'.\nimport 'vue-tel-input\/vue-tel-input. css'.\n\nconst application = createApp( App).\napp.use( VueTelInput).\napp.mount(' #app').\nMuch more details on setup.\n\n\nUse the vue-tel-input component:.\n\n\n\n\nInstallation.\nnpm.\nnpm mount vue-tel-input.\nInstall the plugin into Vue:.\nbring in createApp from 'vue'.\nimport App coming from '.\/ App.vue'.\nbring in VueTelInput coming from 'vue-tel-input'.\nbring in 'vue-tel-input\/vue-tel-input. css'.\n\nconst globalOptions = \nmode: 'automobile',.\n.\n\nconst app = createApp( App).\napp.use( VueTelInput, globalOptions)\/\/ Describe nonpayment international choices here (extra).\napp.mount('
app').Sight all offered alternatives in Props.Or even make use of the component directly:.
CDN as well as Internet browser.If Vue is actually sensed in the Page, the plugin is put in automatically.** Typically, personally set up the plugin in to Vue:.app.use( home window [' vue-tel-input'].Component careless running.Given that the library has to do with 200kb of JavaScript and 100kb of CSS if you want to boost initial web page filling time you may take into consideration importing it asynchronously only when customer browses to the page where the public library is really needed. The method is actually called Idle Lots and also you can use it in some contemporary bundlers like Webpack and also Rollup.
As you find, our experts do not utilize Vue SFC tag here to import element's css as it would cause CSS heading to the main/vendors bundle as opposed to being installed as needed.