About
An Iranian mobile phone number input that formats digits as you type, shows Persian numerals, and validates the 09xxxxxxxxx format.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Phone Input to your project and fits it to your theme.
Code
How Phone Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { PhoneInput } from "@/components/ui/phone-input";
export default function PhoneInputDemo() {
return (
<div className="w-full max-w-sm p-4" dir="rtl">
<PhoneInput id="phone" placeholder="0912 345 6789" />
</div>
);
}















