omeralpi/shadcn-phone-input ? reverse-engineered prompt
Reverse engineered prompt
Build me a reusable phone number input component for a React app that fits the shadcn style really well.
I want it to let users type a phone number and pick their country from a dropdown, with nice default styling but still easy to customize. It should validate numbers properly for different countries, and work cleanly with form libraries like react hook form and zod so I can show validation messages when the number is invalid. If possible, include a simple example page or usage demo so I can see how to drop it into a form right away.
Make it feel polished, like a native part of the shadcn design system, and keep the API simple enough that I can use it in other projects without much setup. If you need to check the latest docs for any library behavior, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit