Phone Input
Phone input with a country dial-code select, live per-country formatting and E.164 output.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
PhoneInputProps
Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultCountry | string | "US" | — |
| countries | Country[] | COUNTRIES | — |
| onValueChange | (value: PhoneValue) => void | — | — |
| invalid | boolean | false | — |
Install
$ npx shadcn@latest add https://chromotion.dev/r/phone-input.json