正在加载视频...

视频加载失败

Made a Phone Input component with shadcn ui and libphonenumber-js

48,295 次观看 • 2 年前 •via X (Twitter)

11 条评论

Damián Ricobelli 的头像
Damián Ricobelli2 年前

Website: GitHub repo:

Paul 🚧 的头像
Paul 🚧2 年前

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

Damián Ricobelli 的头像
Damián Ricobelli2 年前

@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.

Francis Baker 的头像
Francis Baker2 年前

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

Damián Ricobelli 的头像
Damián Ricobelli2 年前

@shadcn Thank you very much, Francis ❤️

Abdulhamit Akaslan 的头像
Abdulhamit Akaslan2 年前

@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.

Damián Ricobelli 的头像
Damián Ricobelli2 年前

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

Mohammad Alnahhas 的头像
Mohammad Alnahhas2 年前

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

Damián Ricobelli 的头像
Damián Ricobelli2 年前

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

Jidé ✨ 的头像
Jidé ✨2 年前

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

Damián Ricobelli 的头像
Damián Ricobelli2 年前

@shadcn Thank you 🙏

相关视频