Skip to content

Playground

select
SVG
national
e164
filled
default

Country
-

Model value
-

Valid
No

sh
$ npm add v-phone-input flag-icons
sh
$ pnpm add v-phone-input flag-icons
sh
$ yarn add v-phone-input flag-icons
sh
$ bun add v-phone-input 2flag-icons
plugin.ts
ts
import 'flag-icons/css/flag-icons.min.css';
import 'v-phone-input/styles';
import { createVPhoneInput, selectPhoneCountryInput, VPhoneCountryFlagSvg } from 'v-phone-input';

const vPhoneInput = createVPhoneInput({
  ...selectPhoneCountryInput,
  countryDisplayComponent: VPhoneCountryFlagSvg,
})