v-phone-input
Version:
International phone field for Vuetify 3 and Vue 3.
9 lines (8 loc) • 578 B
TypeScript
import { Plugin } from 'vue';
import { VPhoneCountryInputComponent, VPhoneInputCountryObject, VPhoneInputPluginOptions } from './types';
/**
* Provide given options to app and register `VPhoneInput` component.
*
* @param options
*/
export default function createVPhoneInput<Country extends VPhoneInputCountryObject = VPhoneInputCountryObject, CountryInputComponent extends VPhoneCountryInputComponent = VPhoneCountryInputComponent>(options?: VPhoneInputPluginOptions<Country, CountryInputComponent>): Plugin<[] | [VPhoneInputPluginOptions<Country, CountryInputComponent>]>;