v-phone-input
Version:
International phone field for Vuetify 3 and Vue 3.
9 lines (8 loc) • 417 B
TypeScript
import { VPhoneInputComposable, VPhoneInputComposableOptions, VPhoneInputCountryObject } from '../types';
/**
* Composable to create a custom phone input with two fields: one for country
* selection and another for phone number.
*
* @param options
*/
export default function usePhoneInput<Country extends VPhoneInputCountryObject>(options: VPhoneInputComposableOptions<Country>): VPhoneInputComposable<Country>;