0.1.2 • Published 2 years ago

react-svg-country-flags v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago