geobuff/flags
A collection of free-to-use flag URL's.
Install
npm i @geobuff/flags
Usage
import React from "react";
import { getFlagUrl } from "@geobuff/flags";
const ExampleComponent = () => (
<>
<img src={getFlagUrl("nz")} />
</>
);
export default ExampleComponent;
Available Mappings
-
🌎 World, Countries -
🇦🇺 Australia, States and Territories -
🇦🇷 Argentina, Provinces -
🇧🇷 Brazil, States -
🇨🇦 Canada, Provinces and Territories -
🇨🇴 Colombia, Departments -
🇫🇷 France, Regions -
🇩🇪 Germany, States -
🇮🇹 Italy, Regions -
🇯🇵 Japan, Prefectures -
🇷🇺 Russia, Federal Subjects -
🇰🇷 South Korea, Provinces -
🇪🇸 Spain, Provinces -
🇺🇦 Ukraine, Oblasts -
🇺🇸 US, States