Simple react component with country or country state flag. Now supporting all country flag, USA, Canada, Germany, Brazil, Australia state flag
npm install react-flag-svg
import React from 'react';
import Flag from 'react-flag-svg';
// Render image with flag
<Flag
isoCode="us-tx"
className="some-class"
alt="alternative text for image"
/>;
Prop | Description | Default |
---|---|---|
isoCode |
The code of te country or state, from List of ISO 3166 country codes alpha-2 code |
Ukraine flag |
className |
class for component | |
alt |
alternative text for image |
The project is supported by Halo lab development team, we're not working on it regularly, but trying to invest in it when we have time between clients' project.
Though, feel free to open issues and you're very welcome to contribute.