Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

437 B
Raw Blame
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)
})