
Domain Rating
by Ahrefs
Domain Rating by Ahrefs1
Description
Flagcn is a set of accessible flag components for React that you add to a shadcn/ui project with the shadcn CLI. It includes 306 flags, plus components for country, phone, language and currency. The CLI copies typed React source into your app, so there is no runtime package, hidden CSS or vendor lock-in. Flags come as SVG, PNG, WebP and JPEG, and you can switch between 4:3, 1:1 and original frames without clipping the artwork. Components include meaningful alt text, an explicit decorative mode and native image props, and the flag picker is keyboard-ready. The site has a live preview where you can choose a format and frame before copying the source. Flagcn is MIT licensed, and its source is public on GitHub.…
Highlights
- 306 flags with source you own in your project
- SVG, PNG, WebP and JPEG formats
- 4:3, 1:1 and original frame ratios
- Alt text, decorative mode and a keyboard-ready picker
- Country, phone, language and currency components
Ratings & Reviews
No ratings yet
Be the first to rate flagcn.
People also visit
flagcn FAQ
Is Flagcn free?
Yes. Flagcn is MIT licensed, and its source is public on GitHub.
How do I add a flag to my app?
Run the shadcn CLI add command for the component you need, such as the flag picker, for example pnpm dlx shadcn@latest add @flagcn/flag-picker. The CLI copies the source into your project.
Which image formats are available?
SVG, PNG, WebP and JPEG. You can switch the delivery format and the 4:3 or 1:1 frame without reloading the preview.
Does it use a runtime package?
No. The components are copied into your project as typed React source, so there is no Flagcn runtime or hidden CSS to depend on.
Is it accessible?
Yes. Flags include meaningful alt text, an explicit decorative mode and native image props, and the picker works with a keyboard.
What are the best flagcn alternatives?
Popular alternatives to flagcn include react-flag-kit, flag-icons-svg and country-flag-icons. See all flagcn alternatives










