react-flag-kitv2
v1.1.0
Published
FlagKit for React - Added some modifications
Downloads
10
Maintainers
Readme
FlagKit for React
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: string;
}
Reference
The list of available flags you can find in FlagKit repo.
Licence
MIT