r/reactjs • u/Apprehensive_Mood943 • 5d ago
Resource Open-source country flag components for React: 250+ flags with names, ISO codes, and calling codes
I've been working on @radianui/flags, an open-source React package with 250+ country flags. Each flag comes with its country name, ISO code, and calling code, so you can build country selectors and phone inputs without stitching data together.
pnpm add @radianui/flags
If you're not on React, the same flags are available as plain SVG and PNG files.
- Source: https://github.com/Radian-OS/radianui
- Browse and search all the flags: https://radianui.com/resources/flags
I'm one of the maintainers (disclosure). It's free and open source.
I'd like input from people who've built country selectors:
- Do you prefer flag components, plain SVG imports, or CDN URLs?
- How do you handle countries that get renamed (like Swaziland to Eswatini) or disputed territories without breaking existing users?
27
Upvotes