react-world-flags
SVG flags of the world for react

react-world-flags downloads react-world-flags version react-world-flags license

react-world-flagsPaquetes similares:
Tendencia de descargas de npm
3 Años
🌟 Muestra el gráfico de uso en tiempo real en el README.md de react-world-flags, simplemente copia el código a continuación.
## Usage Trend
[![Usage Trend of react-world-flags](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-world-flags.png)](https://npm-compare.com/react-world-flags#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Muestra el gráfico de tendencia de GitHub Stars en el README.md de react-world-flags, simplemente copia el código a continuación.
## GitHub Stars Trend
[![GitHub Stars Trend of react-world-flags](https://npm-compare.com/img/github-trend/react-world-flags.png)](https://npm-compare.com/react-world-flags)
Detalle de estadísticas
Paquete
Descargas
Stars
Tamaño
Issues
Publicación
Licencia
react-world-flags59,00016310.8 MB11hace 2 añosMIT
README para react-world-flags

CircleCI

react-world-flags

Easy to use SVG flags of the world for react

Demo

Installation

npm install react-world-flags

Usage

import Flag from 'react-world-flags'

<Flag code={ code } />

Where code is the two letter, three letter or three digit country code.

You can also pass an optional fallback which renders if the given code doesn't correspond to a flag:

import Flag from 'react-world-flags'

<Flag code="foo" fallback={ <span>Unknown</span> }/>

All props but code and fallback are passed through to the rendered img

<Flag code="nor" height="16" />

// <img src="data:image/svg+xml..." height="16">

Caveat

The bundle contains all flags of the world and is about 1.3 MB gzipped.

SVG's are inlined using Data_URIs.