shadcn/ui Country Dropdown
A searchable country selector with flags, ISO 3166 codes and a full country object on selection.
- Category
- Libraries & Components
- Added
About
About shadcn/ui Country Dropdown
The Country Dropdown is a select input for choosing a country, assembled from the shadcn/ui Popover and Command components. It uses react-circle-flags for flag icons and country-data-list for the data, which includes both ISO 3166-1 alpha-2 and alpha-3 country codes. Selecting a country in the demo returns the full country object, so you can read codes and other fields. The same site has sibling pages for a currency select, a phone input and select pills.
Install by adding react-circle-flags and country-data-list, then adding button, command and popover with the shadcn CLI, and copying the component code. Check the repository for license terms. It suits signup and checkout forms where users pick a nationality or billing country.
shadcn/ui Country Dropdown features
5 features
- ISO 3166-1 alpha-2 and alpha-3 codes
- Circle flag icons
- Built on Popover and Command
- Returns the full country object
- Preview and code tabs on the demo
Install shadcn/ui Country Dropdown
1 command
Terminal
$ pnpm add react-circle-flags country-data-listWhat you can build with shadcn/ui Country Dropdown
3 use cases
- Choosing a billing country in a checkout form
- Collecting nationality during signup
- Feeding a country code into a phone or tax field
Libraries & Components
Similar to shadcn/ui Country Dropdown
More libraries & components like shadcn/ui Country Dropdown: the closest by what they do, then the most starred.
Fancy Multi SelectLibraryFancy Multi Select is a simple multi-select input for React built with cmdk and shadcn styling, with keyboard support including Backspace removal.
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.
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.
Shadcn/ui + Downshift ComboboxLibraryCombobox for shadcn/ui driven by Downshift's useCombobox hook, giving you an autocomplete input with a list of suggestions. MIT licensed.
Cascader-ShadcnLibraryCascader-Shadcn adds an Ant Design-style cascading dropdown to shadcn/ui for hierarchical data, with click or hover expansion. Install it via the CLI.
Async SelectLibraryAsync Select is a React select for shadcn/ui that fetches options as you type or preloads them. It composes Popover and Command with generic typing.
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/ui Country Dropdown is, how to install it, its license and its alternatives.
Install react-circle-flags and country-data-list, then add the button, command and popover components with the shadcn CLI.
The demo shows the full country object, with ISO 3166-1 alpha-2 and alpha-3 codes provided by the country-data-list package.
A searchable country selector with flags, ISO 3166 codes and a full country object on selection.
shadcn/ui Country Dropdown lists ISO 3166-1 alpha-2 and alpha-3 codes, Circle flag icons, Built on Popover and Command, Returns the full country object and Preview and code tabs on the demo.
The directory lists these uses for shadcn/ui Country Dropdown: Choosing a billing country in a checkout form, Collecting nationality during signup and Feeding a country code into a phone or tax field.
The directory does not name a maker for shadcn/ui Country Dropdown. Its site is https://shadcn-country-dropdown.vercel.app/.
shadcn/ui Country Dropdown was added to the directory on December 27, 2024.
shadcn/ui Country Dropdown 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.
Components, Select and combobox, Inputs, Forms, Copy and paste and React. Each tag has a page listing the other resources that carry it.
Yes. shadcn/ui Country Dropdown's page has a Live tab beside the screenshot that loads its site in a frame.
shadcn/ui Country Dropdown lists this command: `pnpm add react-circle-flags country-data-list`.
The directory lists no shadcn CLI command for shadcn/ui Country Dropdown. Check its docs at https://shadcn-country-dropdown.vercel.app/ for how to add it.
The directory links no repository for shadcn/ui Country Dropdown. Its site is https://shadcn-country-dropdown.vercel.app/.
The directory links no separate docs for shadcn/ui Country Dropdown; start from its site at https://shadcn-country-dropdown.vercel.app/.
The directory records no license for shadcn/ui Country Dropdown. Check its repository or site before you use it.
The directory records no price for shadcn/ui Country Dropdown. Its site, https://shadcn-country-dropdown.vercel.app/, is where its pricing, if any, is stated.
No. shadcn/ui Country Dropdown is made by its own maker 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: Fancy Multi Select, Multi Select Component, Country State Dropdown and Shadcn/ui + Downshift Combobox. Their pages are linked under Similar to shadcn/ui Country Dropdown.
Open its category, Libraries & Components, or one of its tags (Components, Select and combobox and Inputs): 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





