Rxova
Skip to content

flagEmoji

function flagEmoji(iso2): string;

The flag emoji for an ISO 3166-1 alpha-2 code.

Two regional-indicator symbols, which every modern platform renders as a flag. No icon font, no sprite sheet, no 250 SVGs — and it inherits the field’s font-size for free.

Windows is the known exception: it renders the two letters instead of a flag, which is a legible fallback rather than a broken image.

ParameterType
iso2string

string