FlagKit for React
npm i react-flag-kit
# or using Yarn
yarn add react-flag-kit
import { FlagIcon } from "react-flag-kit";
export const USAFlag = () => <FlagIcon code="US" size={48} />;
export interface FlagIconProps extends ImgHTMLAttributes<HTMLImageElement> {
size?: number;
code: FlagIconCode;
}
The list of available flags you can find in FlagKit repo.
MIT