react-flag-kit
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

FlagKit for React

Main npm version npm minzipped size npm downloads

Installation

npm i react-flag-kit
# or using Yarn
yarn add react-flag-kit

Usage

import { FlagIcon } from "react-flag-kit";

export const USAFlag = () => <FlagIcon code="US" size={48} />;

Props

export interface FlagIconProps extends ImgHTMLAttributes<HTMLImageElement> {
  size?: number;
  code: FlagIconCode;
}

Reference

The list of available flags you can find in FlagKit repo.

Licence

MIT

Package Sidebar

Install

npm i react-flag-kit

Weekly Downloads

35,602

Version

1.1.1

License

MIT

Unpacked Size

10.8 kB

Total Files

6

Last publish

Collaborators

  • umidbekk