miladjoodi

Phone Input

Forms

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>
  );
}

Dependencies

More by miladjoodi

View all
  • Image Diff Slider

    Image Diff Slider

    36
  • Empty State

    Empty State

  • Avatar

    Avatar

  • Button

    Button

  • Item

    Item

  • Signature Pad

    Signature Pad

  • Hover Card

    Hover Card

  • File Upload

    File Upload

More in Forms

View all
  • Premium Auth

    Premium Auth

    577
  • Login 1

    Login 1

    67
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Login Card

    Login Card

    36
  • Change Password Form

    Change Password Form

    11
  • Login 2

    Login 2

    15
  • Form

    Form

    3