@nivoda/react-flag-kit

0.2.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @nivoda/react-flag-kit

Weekly Downloads

115

Version

0.2.5

License

MIT

Unpacked Size

1.19 MB

Total Files

276

Last publish

Collaborators

  • lahmer.mohammed
  • ijhar-nivoda
  • varunrnivoda
  • nivoda-abhishek
  • andrewoons
  • adebayo.m