Skip to content
F

flagcn

Accessible, source-owned flag components for shadcn/ui

Open source

Domain Rating by Ahrefs1

#1673in UI Libraries
0In stores

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…

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

R

react-flag-kit

FlagKit for React

UI Libraries
Launch
F

flag-icons-svg

A beautiful `svg` + `less` + `sass` + `css` collection of country flags

UI Libraries
Launch
C

country-flag-icons

Vector (*.svg) country flag icons in 3x2 aspect ratio

UI Libraries
Launch
R

react-flags

Flags of the world

UI Libraries
Launch
R

react-circle-flags

A React component with a collection of 300+ minimal circular SVG country flags

UI Libraries
Launch
N

navui

shadcn-compatible components, blocks, and illustrations

UI Libraries
Launch

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

Developer Stuff

Badges