react-svg-country-flags
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

NPM Github Actions

react-svg-world-flags

easy-to-use component flags of the countries for react.

On this project we used flags icons designed By Luc Chaissac

Figma project (Consistent, minimalist style.)

Installation

npm:

npm install react-svg-world-flags

yarn:

yarn add react-svg-world-flags

Usage

import Flag from 'react-svg-world-flags'

<Flag country='MA' />

country is the two letter ISO 3166-1 alpha-2 country code.

You can also pass an className as a prop

<Flag country='MA' className='w-12' />

// <svg width="21" height="15" viewBox="0 0 21 15" fill="none" xmlns="http://www.w3.org/2000/svg"> ...

Credits

If you liked this project please follow and support Luc Chaissac

Package Sidebar

Install

npm i react-svg-country-flags

Weekly Downloads

87

Version

0.1.2

License

MIT

Unpacked Size

3.04 MB

Total Files

423

Last publish

Collaborators

  • ayoup1