Renders a country flag from an ISO 3166-1 alpha-2 country code, served as an SVG from ngrok's CDN.
"s" (16×12), "m" (20×15), and "l" (32×24, default) match common inline, list, and table contexts. Pick the size that matches its neighbors so the flag doesn't dominate or disappear.
The underlying <img> is given alt="flag for {code}". If the country is decorative or already labeled in adjacent text, consider passing aria-hidden via the wrapper <div> to avoid duplicate announcements.
Defaults to loading="lazy". Use loading="eager" for flags above the fold or in critical content.
1import { Flag } from "@ngrok/mantle/flag";2 3<Flag code="US" />4<Flag code="JP" loading="lazy" />5<Flag code="ES" loading="eager" />The Flag accepts the following props in addition to the standard HTML div attributes.