Talixo Country Flag
Light-weight UI component which represents country flags icons.
How to install
Package is available as
@talixo/country-flag in NPM registry, so you can use it in your project
npm install @talixo/country-flag --save or
yarn add @talixo/country-flag.
Your package should additionally have some extra dependencies:
These packages are required by
@talixo/country-flag, but you have to install them manually,
to avoid having different versions of these in your application.
It allows any property which could be passed to
svg. Additionally, it handles some differently:
|className||string||no||n/a||additional class name passed to wrapper|
|code||string||yes||n/a||ISO 3166-1 alpha-2 country code|
You can either use one of ISO 3166-1 alpha-2 country codes
or use some of additional:
To reinitialize sprites simply run
npm run update in package - it will automatically generate sprite and component which will include it.
When you will want to use another package with SVG icons, change
- 0.1.0 - initial version