lyef-flags

1.1.0 • Public • Published

Lyef flags

Build Status Badge size Badge gzip size NPM version

A react component to show flags of all countries based on Flagpedia.

Flags from some countries

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

Package Sidebar

Install

npm i lyef-flags

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • willianjusten