Description
react-flags-select is a React library with customizable SVG flag select components, plus standalone flag components you can use on their own. The main component is a dropdown where users pick a country, and the README documents its props. The selected prop holds the current country code, and onSelect receives the code the user chose so your state can update. The placeholder prop replaces the default text, and searchable adds a search box to the list, with searchPlaceholder for its text. The countries prop limits the list to a set of country codes, and blacklistCountries flips that so the listed countries are excluded instead. The customLabels prop changes the label shown for a country, and it accepts strings or label objects, with the default country name used when no label is passed. A separate Country Flag component renders a single flag from its country code. The README links a full list of country codes and a live demo on GitHub Pages. You install it from npm and import the component into a React project. The source is public on GitHub.…
Highlights
- Searchable country select with SVG flags
- Standalone flag component
- Limit or exclude countries with a list
- Custom labels for countries
- Full country code list and live demo
Ratings & Reviews
No ratings yet
Be the first to rate react-flags-select.
People also visit
react-flags-select FAQ
What is react-flags-select?
A React library with a country select dropdown that shows SVG flags, and a standalone flag component.
Is it free?
Yes. The source is public on GitHub and listed as open source.
Can I show only some countries?
Yes. The countries prop limits the list to the codes you pass, and blacklistCountries excludes them instead.
Can I make the search box work?
Set the searchable prop to true. The searchPlaceholder prop changes the search box text.
What are the best react-flags-select alternatives?
Popular alternatives to react-flags-select include react-flags, react-flagpack and react-circle-flags. See all react-flags-select alternatives


















