This lib was born at eduardosites.com — learn to build websites and systems from scratch, hands-on.Join the community
Lib 03Open Source · MIT

@edusites/bandeiras-paises

Flags of every country in the world as SVG, with the country list and dial code for each one. One component, zero configuration.

npmGitHub
196 countries5 frameworks
npm install @edusites/bandeiras-paises
01 Flags

The whole world in one package.

Search by name, ISO code or dial code. Click a flag to customize it and copy the code.

196 countries with flag, name and dial code

02 Usage

Fits into any stack.

The same package in Vue, Nuxt, React, Svelte and vanilla JavaScript.

Component.vue
<script setup>
import { SvgPais } from "@edusites/bandeiras-paises";
</script>

<template>
  <SvgPais nome="BR" />
  <SvgPais nome="US" :tamanho="24" />
  <SvgPais nome="PT" :tamanho="18" redonda />
</template>
03 Get started

Install and use in seconds.

Open source, MIT license. No setup, no friction.

npm install @edusites/bandeiras-paises