Vue component

We now have our own Vue component! You can view a full list of all supported props here. See the validation App for a demo of how to use the validation props. To run the demo yourself, just download the project, run npm install then npm run vue:demo and then copy the given URL into your browser. Feedback welcome!

Demo

Code

<script setup>
  import IntlTelInput from "intl-tel-input/vue";
  import "intl-tel-input/styles";
</script>

<template>
  <IntlTelInput
    @changeNumber="number = $event"
    @changeValidity="isValid = $event"
    @changeErrorCode="errorCode = $event"
    :options="{
      initialCountry: 'us',
      utilsScript: '/intl-tel-input/js/utils.js?1730730622316',
    }"
  />
</template>