v-phone-input / VPhoneInputCountryProps
Interface: VPhoneInputCountryProps<Country>
Defined in: dist/types.d.ts:76
Internal
Props to customize country related features.
Extends
Readonly<Partial<ExtractPropTypes<ReturnType<typeofmakePhoneInputCountryProps>>>>
Type Parameters
Country
Country extends VPhoneInputCountryObject
Properties
countries?
readonlyoptionalcountries:Country[]
Defined in: dist/props/makePhoneInputCountryProps.d.ts:35
List of available countries.
Default Value
Use countries-list two-letter codes, dial codes resolved using awesome-phonenumber package's getCountryCodeForRegionCode, and given locale (or en) translated names using Intl.DisplayNames.
Inherited from
Readonly.countries
countryLocale?
readonlyoptionalcountryLocale:string
Defined in: dist/props/makePhoneInputCountryProps.d.ts:15
Locale to use when localizing country names.
Default Value
'en'
Inherited from
Readonly.countryLocale
countryName()?
readonlyoptionalcountryName: (iso2) =>string
Defined in: dist/props/makePhoneInputCountryProps.d.ts:24
Resolve a country name from its ISO-2 code.
Parameters
iso2
string
Returns
string
Default Value
Uses Intl.DisplayNames to localize the country name in defined countryLocale.
Inherited from
Readonly.countryName
defaultCountry?
readonlyoptionaldefaultCountry:VPhoneInputCountryObjectOrIso2
Defined in: dist/props/makePhoneInputCountryProps.d.ts:74
Default country to use.
Default Value
First country from the available countries list.Inherited from
Readonly.defaultCountry
excludeCountries?
readonlyoptionalexcludeCountries:VPhoneInputCountryObjectOrIso2[]
Defined in: dist/props/makePhoneInputCountryProps.d.ts:65
List of countries to exclude.
Remarks
When specified, any country which is in this list will be excluded from available countries.
Inherited from
Readonly.excludeCountries
includeCountries?
readonlyoptionalincludeCountries:VPhoneInputCountryObjectOrIso2[]
Defined in: dist/props/makePhoneInputCountryProps.d.ts:55
List of countries to include.
Remarks
When specified, any country which is not in this list will be excluded from available countries.
Inherited from
Readonly.includeCountries
preferCountries?
readonlyoptionalpreferCountries:VPhoneInputCountryObjectOrIso2[]
Defined in: dist/props/makePhoneInputCountryProps.d.ts:45
List of countries to prefer.
Remarks
When specified, any country which is in the list will appear first in available countries.
Inherited from
Readonly.preferCountries