14 lines
387 B
TypeScript
14 lines
387 B
TypeScript
import { defineNuxtPlugin } from '#app'
|
|
import { createVPhoneInput } from 'v-phone-input'
|
|
import 'v-phone-input/dist/v-phone-input.css'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
const vPhoneInput = createVPhoneInput({
|
|
defaultCountry: 'US',
|
|
preferredCountries: ['US', 'FR', 'ES', 'PT', 'GB'],
|
|
enableSearchingCountry: true,
|
|
})
|
|
|
|
nuxtApp.vueApp.use(vPhoneInput)
|
|
})
|