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",
  loadUtils: () => import("/intl-tel-input/js/utils.js?1733756310855") // for formatting/placeholders etc
});