Right to left

In this demo, we add dir="rtl" to the container, and also to the input element to make it right-to-left. We also import the Arabic locale, and initialise the plugin to Egypt.

Demo

Markup

<input dir="rtl" id="phone" type="tel">

Code

import intlTelInput from "intl-tel-input";
import ar from "intl-tel-input/i18n/ar"; // arabic

const input = document.querySelector("#phone");

intlTelInput(input, {
  i18n: ar,
  initialCountry: "eg",
  utilsScript: "/intl-tel-input/js/utils.js?1730730622316" // just for formatting/placeholders etc
});