react-svg-flag

0.0.11 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i react-svg-flag

Weekly Downloads

0

Version

0.0.11

License

ISC

Unpacked Size

21.3 MB

Total Files

2068

Last publish

Collaborators

  • ivywitter