Vuetify telephone field
npm install @ibkhall/v-phone-field
<script setup>
import VPhoneField from '@ibkhall/v-phone-field'
import {ref} from 'vue'
const phone = ref('')
</script>
<template>
<!-- some codes -->
<VPhoneField v-model="phone"/>
<!-- some codes -->
</template>
All VTextField props and following props
Name | Default | Description |
---|---|---|
default-country | the country fetched from IP address of user | The country iso2 code(ex: ne for Niger) |
invalid-message | Invalid phone number | Error message to display when invalid |
All VTextField events and @validate
Name | Description |
---|---|
@validate | On phone number is valid |
The MIT License.
Ibrahim Boubacar ibrahimkhall212@gmail.com |