React SVG Flag
A simple component implementing flag-icon-css as a React Component by utilizing it's resources
Useage
Import with:
import Flag from 'react-svg-flag';
Properties:
code: lower case 2 digit country code
height: height in pixels
width: width in pixels
radius: border radius in pixels
squared: boolean on whether or not to square icon
Storybook
Start storybook with:
$ npm run storybook
All props are available as knobs.
Contribute
Really please if sending a pull request don't import unnecessary modules, keep a consistent file structure, and include your changes in storybook.