Shadcn Phone Input (damianricobelli)
A formatted phone input powered by libphonenumber-js, with country data and a helper that parses numbers.
- Category
- Libraries & Components
- Added
- GitHub stars
- 277
About
About Shadcn Phone Input (damianricobelli)
Shadcn Phone Input is a simple, formatted phone input built with shadcn/ui and libphonenumber-js. The demo shows a country flag, a default field and a form that asks for a valid phone number with country. A utility called getPhoneData returns the phone number, country code, country calling code, national and international formats, a tel URI and possible countries, and flags whether the number is valid or only possible.
Country data and ISO codes are loaded from the API of the open-source countries-states-cities-database project. The page notes that a pull request for shadcn/ui is coming. The repository README is the default Next.js text, so setup is by reading the code, and no license is listed. Its last push dates to April 2024. It suits forms that need parsed, validated phone data rather than a raw string.
Shadcn Phone Input (damianricobelli) features
5 features
- Formatted phone input with flags
- getPhoneData helper for parsed details
- Valid and possible number checks
- International format and tel URI output
- Country data from an open database
What you can build with Shadcn Phone Input (damianricobelli)
3 use cases
- Validating phone numbers on a signup form
- Saving numbers in international format
- Reading the country calling code from user input
Libraries & Components
Similar to Shadcn Phone Input (damianricobelli)
More libraries & components like Shadcn Phone Input (damianricobelli): the closest by what they do, then the most starred.
EmblorLibraryEmblor is an npm package that adds a tag input to shadcn/ui forms. It is accessible, customizable and ready to drop into a React form with a few props.
Shadcn Phone InputLibraryShadcn Phone Input wraps react-phone-number-input in a shadcn/ui input with a searchable country list and flags. It runs standalone or in a dialog.
Multi Select ComponentLibraryMulti Select Component is a React and TypeScript multi-select built with shadcn/ui and Radix UI, with search, animations, variants and accessibility.
shadcn-image-cropperLibraryshadcn-image-cropper is a Next.js demo that crops an uploaded avatar with react-image-crop and shadcn/ui. Source code is on GitHub.
Country State DropdownLibraryCountry State Dropdown is a Next.js demo of linked country and state selects built with Tailwind CSS, shadcn/ui and Zustand. Copy it into your forms.
Image Crop FieldLibraryImage Crop Field handles image upload, cropping, zoom and rotation in React, free or fixed aspect ratios, and plugs into React Hook Form. MIT licensed.
Pricing
Ship it with Pro
The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What Shadcn Phone Input (damianricobelli) is, how to install it, its license and its alternatives.
The demo lists the phone number, country code, country calling code, national number, international number, URI and possible countries.
From the API of the open-source countries-states-cities-database project, according to the demo page.
A formatted phone input powered by libphonenumber-js, with country data and a helper that parses numbers.
Shadcn Phone Input (damianricobelli) lists Formatted phone input with flags, getPhoneData helper for parsed details, Valid and possible number checks, International format and tel URI output and Country data from an open database.
The directory lists these uses for Shadcn Phone Input (damianricobelli): Validating phone numbers on a signup form, Saving numbers in international format and Reading the country calling code from user input.
Shadcn Phone Input (damianricobelli) is made by damianricobelli, at https://github.com/damianricobelli. Its site is https://github.com/damianricobelli/shadcn-phone-input.
Shadcn Phone Input (damianricobelli) was added to the directory on December 27, 2024.
Shadcn Phone Input (damianricobelli) is in Libraries & Components. Component libraries and standalone components built on shadcn/ui, covering the data tables, pickers, editors and charts the core set leaves out.
Inputs, Forms, Components, Next.js, React and Open source. Each tag has a page listing the other resources that carry it.
Yes. Shadcn Phone Input (damianricobelli)'s page has a Live tab beside the screenshot that loads its site in a frame.
The directory lists no install command for Shadcn Phone Input (damianricobelli). Follow the instructions on its site at https://github.com/damianricobelli/shadcn-phone-input.
The directory lists no shadcn CLI command for Shadcn Phone Input (damianricobelli). Check its docs at https://github.com/damianricobelli/shadcn-phone-input for how to add it.
Shadcn Phone Input (damianricobelli)'s repository is https://github.com/damianricobelli/shadcn-phone-input.
The directory links no separate docs for Shadcn Phone Input (damianricobelli); start from its site at https://github.com/damianricobelli/shadcn-phone-input.
The directory records no license for Shadcn Phone Input (damianricobelli). Check its repository or site before you use it.
The directory records no price for Shadcn Phone Input (damianricobelli). Its site, https://github.com/damianricobelli/shadcn-phone-input, is where its pricing, if any, is stated.
No. Shadcn Phone Input (damianricobelli) is made by damianricobelli and listed here as a link. A shadcn.io Pro plan covers shadcn.io's own blocks, templates and tools.
Other resources in Libraries & Components, newest first: Emblor, Shadcn Phone Input, Multi Select Component and shadcn-image-cropper. Their pages are linked under Similar to Shadcn Phone Input (damianricobelli).
Open its category, Libraries & Components, or one of its tags (Inputs, Forms and Components): each page lists the resources that share it.
4.9 out of 5 from 150+ developers
Found your stack? Ship it.
6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.
Get Pro



