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.
Default
We can use the getPhoneData
utility function to get a lot of information about the selected number.
Phone number:
+14089961010Country code:
USCountry calling code:
1National number:
4089961010International number:
+1 408 996 1010URI:
tel:+14089961010Possible countries:
USVALID NUMBER
POSSIBLE NUMBER
Form