Installation
npm install --save @types/react-world-flags
Summary
This package contains type definitions for react-world-flags (https://github.com/smucode/react-world-flags#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-world-flags.
index.d.ts
import * as React from "react";
export interface FlagProps extends React.HTMLProps<HTMLImageElement> {
/**
* code is the two letter, three letter or three digit country code.
*/
code?: string | undefined;
/**
* You can also pass an optional fallback which renders if the given code doesn't correspond to a flag
*/
fallback?: React.ReactNode | null | undefined;
}
/**
* Easy to use SVG flags of the world for react
*/
declare const Flag: React.FC<FlagProps>;
export default Flag;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Piotr Błażejewicz.