omeralpi / shadcn-phone-input

Customizable phone input component with proper validation for any country. Built on top of shadcn.
https://shadcn-phone-input.vercel.app
MIT License
422 stars 28 forks source link

Support phone number extensions #25

Closed bryanjtc closed 3 months ago

bryanjtc commented 4 months ago

Phone number can have extensions, like this: const phone = "+12133734253" const phoneExt = "1234" returns: "(213) 373-4253 ext. 1234"

It can be formatted like this: ${number} ext. ${extension} ${number} x${extension}

Example of a mui phone input with extension support image