Skip to content

Country autocomplete

Component

VPhoneInput supports VAutocomplete input for current phone's country. To use an autocomplete country input, you can use autocompletePhoneCountryInput instead of selectPhoneCountryInput. The following example is a global configuration using plugin createVPhoneInput

app.ts
ts
import { selectPhoneCountryInput } from 'v-phone-input';
import { autocompletePhoneCountryInput } from 'v-phone-input';

const vPhoneInput = createVPhoneInput({
  ...selectPhoneCountryInput,
  ...autocompletePhoneCountryInput,
});