Description
shadcn-country-dropdown is a country selector for React that follows the ISO 3166 standard and is built with shadcn/ui. It uses the Popover and Command components from shadcn/ui, so the list opens from a trigger and can be searched, and it shows a flag next to each country using the react-circle-flags package. The country data comes from country-data-list, which provides both the two-letter alpha-2 and three-letter alpha-3 ISO 3166-1 country codes. The demo shows the full country object when you pick a country, so you can see what your form receives. Installation takes two steps: add the react-circle-flags and country-data-list packages, then add the shadcn button, command and popover components with the shadcn CLI. You then copy the country-dropdown component into your components folder. The demo has Slim, Multiple and Form examples, and the component file starts with a use client directive. It suits forms that ask for a nationality, a residence or a delivery country.…
Highlights
- Searchable country dropdown built on shadcn/ui
- ISO 3166 codes in alpha-2 and alpha-3
- Flags from react-circle-flags
- Slim, multiple and form examples
- Installs with the shadcn CLI
Ratings & Reviews
No ratings yet
Be the first to rate shadcn-country-dropdown.
People also visit

registry.directory
A curated directory to discover, preview, and copy shadcn/ui registries
shadcn-country-dropdown FAQ
What is shadcn-country-dropdown?
A country selector for React that follows ISO 3166 and is built with shadcn/ui components.
Which country codes does it use?
The country data comes from country-data-list, which provides ISO 3166-1 alpha-2 and alpha-3 codes.
How do I install it?
Add the react-circle-flags and country-data-list packages, add the shadcn button, command and popover components, then copy the country-dropdown component into your project.
Is there a multiple select?
Yes. The demo includes a Multiple example, along with Slim and Form examples.
What are the best shadcn-country-dropdown alternatives?
Popular alternatives to shadcn-country-dropdown include react-flags-select, shadcn-iconpicker and flagcn. See all shadcn-country-dropdown alternatives




