Phone Input for the Form Component #903
Replies: 8 comments 20 replies
|
This will really be very beneficial, shadcdn is currently gaining popularity, i was hoping this already exists |
|
You are right I might start the project. Recently I fell in love with shadcn. also I wanted to contribute a bit by making this open source project, where I used shadcn , you can contribute and customize some objects if you want, here is my repo : https://github.com/PiotrWarzachowski/DocMind Feel free to check it out, its public on vercel. You can leave a star ⭐ if you want 💓. Have a good year |
|
Phone Input would be great! Maybe wrapped around |
|
Fifth! Yeah I actually really need a cool phone input now so I'm glad this is being talked about. |
|
Maybe this could be of use to you. Shadcn Phone Input is a phone input component built as part of the Shadcn design system. I have also submitted a pull request (#2694) that includes a phone input component. |
|
Hey, @omeralpi! I was working on the same problem. Thank you for you contribution. The solution I came up with is a bit janky. I do, however, would like to refine it. Do you want to work on this together? Recording.2024-02-23.200841.mp4 |
|
@shadcn is slowly turning into a components library |
|
I made this form component with phone input along with country code using these two libraries together: And here is the form component: https://github.com/Afrin127329/AlterYouth-homepage/blob/main/src/components/HeroForm.tsx
|

Uh oh!
There was an error while loading. Please reload this page.
I think that it would be a good idea to create pre-defined input for phone validation in form components, such as:


Currently, there are many libraries for such purposes, but none are friendly for integration and customization - you need to do everything separately for it because of style conflicts.
All reactions