avocadowastaken / react-flag-kit

FlagKit for React

Home Page:https://codesandbox.io/s/github/umidbekk/react-flag-kit/tree/main/examples/simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

FlagKit for React

https://codesandbox.io/s/github/umidbekk/react-flag-kit/tree/main/examples/simple

License:MIT License


Languages

Language:TypeScript 84.5%Language:JavaScript 15.5%