Phone
A simple but clean phone input with a region selection so you dont have to worry about messing up.
Preview
Installation
bunx --bun shadcn@latest add @nordaun/phone
Usage
/components/phone-demo.tsx
| 1 | import { Phone } from "@/components/ui/phone"; |
| 2 | |
| 3 | export default function PhoneDemo() { |
| 4 | return ( |
| 5 | <div className="py-4 max-w-xs w-full mx-auto"> |
| 6 | <Phone placeholder="Enter your phone number" /> |
| 7 | </div> |
| 8 | ); |
| 9 | } |