Atelier UI

Search components…

Search components…

Phone Input

Phone input with a country dial-code select, live per-country formatting and E.164 output.

Edit in sandbox

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">

PropTypeDefaultDescription
defaultCountrystring"US"—
countriesCountry[]COUNTRIES—
onValueChange(value: PhoneValue) => void——
invalidbooleanfalse—

Install

$ npx shadcn@latest add https://chromotion.dev/r/phone-input.json

More like this