1.4.5 • Published 6 months ago
@types/react-world-flags v1.4.5
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
// Type definitions for react-world-flags 1.4
// Project: https://github.com/smucode/react-world-flags#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 22:41:44 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.