Shadcn Phone Input

Simple and formatted phone input component built with Shadcn UI y libphonenumber-js

*With country data and ISO codes obtained from the API of the OSS countries-states-cities-database project.

GitHub

Default

We can use the getPhoneData utility function to get a lot of information about the selected number.

Phone number:

+14089961010

Country code:

US

Country calling code:

1

National number:

4089961010

International number:

+1 408 996 1010

URI:

tel:+14089961010

Possible countries:

US
VALID NUMBER
POSSIBLE NUMBER

Form

Enter a valid phone number with country