@nivoda/react-flag-kit
v0.2.5
Published
FlagKit for React
Downloads
557
Keywords
Readme
FlagKit for React
Installation
With npm
npm i react-flag-kit --save --save-exact
With yarn
yarn add react-flag-kit -E
Usage
If you want to bundle your app with flag icons:
import FlagIcon from 'react-flag-kit/lib/FlagIcon';
export default () => <FlagIcon code="WW" size={48} />
If you want to use flag icons from CDN:
import FlagIcon from 'react-flag-kit/lib/CDNFlagIcon.js';
export default () => <FlagIcon code="WW" size={48} />
More advanced examples you can find in storybook.
Reference
The list of available flags you can find in FlagKit repo.
Thanks
FlagKit for awesome collection of flag icons.
UNPKG for free and fast CDN.
Licence
MIT