Loading video...
Video Failed to Load
Made a Phone Input component with shadcn ui and libphonenumber-js
48,295 views • 2 years ago •via X (Twitter)
11 Comments

Website: GitHub repo:

@shadcn Did you take into account, that Windows doesn't support flag emojis?

@paul_koeck @shadcn Yes! For a first version, I didn’t want to dwell on it too much. Another way to solve it can be with svg for each country, but I have to investigate a little more.

@shadcn You’ve been cranking out some amazing components lately. The stepper is one of my favorites, and using that in an app.

@shadcn Thank you very much, Francis ❤️

@shadcn Nice job! I just find a weird bug on "Ctrl" + "Z" to revert last char. It keeps copy-paste whole input. Also "Ctrl" + "A" and "Delete" not working properly too.

@shadcn Thank you for discovering it! I will try to make the fix between today and tomorrow.

@shadcn Looks very neat! One minor issue I discovered is searching with the country code does not work properly.

@shadcn Hey! Could you create an issue in the GitHub repo?

@shadcn Added your component to my shadcn/ui additional components and resources post

@shadcn Thank you 🙏
