Skip to content

FlagUtils

const FlagUtils: {
formatCountryCode: (code) => string;
getComponentName: (code) => string;
getSizeName: (pixels) => FlagSizeName | null;
isValidCountryCode: (code) => boolean;
sizes: typeof FlagSizes;
};

Defined in: react/src/flag-utils.ts:12

formatCountryCode: (code) => string;

string

string

getComponentName: (code) => string;

string

string

getSizeName: (pixels) => FlagSizeName | null;

number

FlagSizeName | null

isValidCountryCode: (code) => boolean;

string

boolean

sizes: typeof FlagSizes;