react-country-flags

Flags of the world as react components.

Usage no npm install needed!

<script type="module">
  import reactCountryFlags from 'https://cdn.skypack.dev/react-country-flags';
</script>

README

react-country-flags

You need flags in your react-project and you don't want to load all flags of the world instant in your application?

<Flag country="de" asSquare={true} />

All flags are svg transpile to react components and they load async in your project.

api

country

Use a two-letter country-code as specific in ISO 3166-1.

asSquare

The flag is centered in a square area.