KodeKarsa UI

Indonesia

Phone Input

A mobile number after a fixed +62. 0812…, 62812…, and +62 812… all work; the operator shows, and the form gets E.164.

src/components/ui/phone-input.tsxBehavior from @ui-sdk/react/input

WhatsApp number

Memuat

Import

tsx
import { PhoneInput } from "@/components/ui/phone-input";

Guidelines

  • Store +62…: it's the format WhatsApp, SMS, and OTP APIs use.
  • The operator is a hint only: numbers can move between operators, so don't build logic on it.