Search for a command to run...
pnpm dlx shadcn@latest add https://ui-x.junwen-k.dev/r/phone-input.json
import { PhoneInput } from "@/components/ui/phone-input";
<PhoneInput>
<PhoneInputCountrySelect>
<PhoneInputCountrySelectTrigger>
<PhoneInputCountrySelectValue />
</PhoneInputCountrySelectTrigger>
<PhoneInputCountrySelectContent>
<PhoneInputCountrySelectOptions />
</PhoneInputCountrySelectContent>
</PhoneInputCountrySelect>
<PhoneInputInput />
</PhoneInput>
Preferred country has been set to MY
(Malaysia).
You can use parsePhoneNumber
to retrieve additional information about the phone number, such as country, national number, and more.