An international phone input component with country selection, smart validation, country-specific placeholders, and visual feedback for global phone numbers.
import * as React from 'react'; import { PhoneInput } from "@/components/ui/phone-input"; export default function DemoOne() { const [phone, setPhone] = React.useState(""); return ( <div> <PhoneInput value={phone} onChange={(value, formatted) => setPhone(formatted)} showFlag={false} /> </div> ); }
Part of HextaUI — browse the full library on 21st.dev.