react-svg-country-flags
v0.1.2
Published
easy-to-use component flags of the countries for react.
Downloads
2,479
Maintainers
Readme
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