v-phone-input / usePhoneInput
Function: usePhoneInput()
usePhoneInput<
Country>(options):VPhoneInputComposable<Country>
Defined in: dist/composables/usePhoneInput.d.ts:8
Composable to create a custom phone input with two fields: one for country selection and another for phone number.
Type Parameters
Country
Country extends VPhoneInputCountryObject
Parameters
options
VPhoneInputComposableOptions<Country>
- ariaLabel
- countries
- country
- countryAriaLabel
- countryInputRef
- countryLabel
- countryLocale
- countryName
- defaultCountry
- displayFormat
- displayFormatDelay
- displayFormatOnBlur
- example
- exampleFormat
- excludeCountries
- guessCountry
- includeCountries
- invalidMessage
- label
- modelFormat
- modelValue
- phoneInputRef
- placeholder
- preferCountries
- validate
Returns
VPhoneInputComposable<Country>