Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 1.06 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.06 KB

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