A simple component showing flags of countries all over the world.

To implement CountryFlag component into your project you'll need to add the import:

import CountryFlag from "@kiwicom/orbit-components/lib/CountryFlag";

After adding import into your project you can use it simply like:

<CountryFlag code="cz" name="Czech Republic" />


Table below contains all types of the props available in CountryFlag component.

Name Type Default Description
code enum "anywhere" Code for the displayed country flag.
dataTest string Optional prop for testing purposes.
name string "medium" The name for the flag.


If code doesn't exist "anywhere" will be used