0.2.5 • Published 1 year ago

@nivoda/react-flag-kit v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

FlagKit for React

build status npm version npm downloads

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