Lyef flags
![NPM version](https://badge-me.herokuapp.com/api/npm/lyef-flags.png)
A react component to show flags of all countries based on Flagpedia.
![Flags from some countries](https://github.com/lyef/lyef-flags/raw/HEAD/flags.png)
Demo
Live examples
Installation
$ npm install --save lyef-flags
Remember to import the styles on css/main.css
folder to your project.
Basic Usage
import Flag from 'lyef-flags';
...
render() {
return (
<Flag country="br" size="small" />
);
}
...
Props
country
(string) - country innitials. Ex.: us, br...size
(string) - image size - options: small, normal, big, ultra.
Architecture
We've developed this component using the following boilerplate:
lyef-react-component.
To know more about the architecture or if you want to contribute with this component:
Contributing Documentation.
License
MIT License @ lyef