Spaces:
Paused
Paused
File size: 437 Bytes
83a59ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import 'flag-icons/css/flag-icons.min.css'
import {
createVPhoneInput,
autocompletePhoneCountryInput,
VPhoneCountryFlagSvg,
} from 'v-phone-input'
import type { Plugin } from 'vue'
export default defineNuxtPlugin((nuxtApp) => {
const vPhoneInput: Plugin = createVPhoneInput({
...autocompletePhoneCountryInput,
countryDisplayComponent: VPhoneCountryFlagSvg,
validate: null,
})
nuxtApp.vueApp.use(vPhoneInput)
})
|