John KuehJohn Kueh

flag icon

Heroicons · flag · MIT

Download SVG

The Heroicons flag icon depicts a stylized flag, commonly used to represent location, nationality, or status indicators.

Common uses

  • Displaying country of origin
  • Indicating a user's selected language
  • Marking a favorite item

Use it in React

Install
npm i @heroicons/react
Import & render
import { FlagIcon } from '@heroicons/react/24/outline';

<FlagIcon className="size-6" />

Styles

Heroicons ships this icon in 4 styles — each its own import:

24/outline
<FlagIcon className="size-6" />
24/solid
<FlagIcon className="size-6" />
20/solid
<FlagIcon className="size-6" />
16/solid
<FlagIcon className="size-6" />

Details

Library
Heroicons (324 icons)
License
MIT
viewBox
0 0 24 24
Keywords
flagcountrylocationnationalitybanner

FAQ

What is the flag icon used for?
It's typically used to signify location, nationality, or to mark an item with a specific status.
How do I use the flag icon in React?
You can import it using `import { FlagIcon } from '@heroicons/react/24/outline'` and then use it as a component.
What is the license for Heroicons?
Heroicons are released under the MIT license, allowing for free use.

Related icons

The same idea in other libraries, and near matches in Heroicons.

Looking for something else? Search Heroicons and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →