forked from on-the-edge-cloud/react-circle-flags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
41 lines (32 loc) · 884 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { DetailedHTMLProps, ImgHTMLAttributes } from "react";
interface CircleFlagProps extends DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
/**
* Country code of flag.
*/
countryCode: string;
/**
* Custom CDN URL to use.
*/
cdnUrl?: string;
/**
* change quality based on next/image
*/
quality?: number
/**
* A boolean that causes the image to fill the parent element instead of setting width and height.
*/
fill?: boolean
height?: number
width?: number
}
/**
*
* Demos:
* - https://tnovau.github.io/react-circle-flags/gallery
*
* Docs:
* - https://tnovau.github.io/react-circle-flags/
*/
declare function CircleFlag(props: CircleFlagProps): JSX.Element;
declare var countries: Record<string, boolean>;
export { CircleFlag, CircleFlagProps, countries }