@types/react-world-flags
TypeScript icon, indicating that this package has built-in type declarations

1.4.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-world-flags

Weekly Downloads

11,888

Version

1.4.5

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • types