Skip to content

shadcn/ui Country Dropdown

A searchable country selector with flags, ISO 3166 codes and a full country object on selection.

shadcn-country-dropdown.vercel.app

shadcn/ui Country Dropdown website screenshot
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-list

What 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

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.

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