Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · GB-NIR--ULSTER-BANNER flag SVG

defaultconstant

The Ulster Banner: one of the flags of Northern Ireland (北アイルランド), GB-NIR, in real use, as an SVG string: viewBox 600 by 300 (2:1), 52.6 KB. From Wikimedia Commons, "Ulster Banner.svg" (public domain). flag("GB-NIR", { variant: "ulster-banner" }) loads it, and variantsOf("GB-NIR") says its status, dates and why it is offered.

Import it

import value from "@johnmorrisdotca/hata/flags/gb-nir--ulster-banner";

Definition

const svg: string

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/gb-nir--ulster-banner";

const host=document.createElement("div");
host.innerHTML = flag;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/gb-nir--ulster-banner";
console.log(svg.startsWith("<svg"),svg.length);
true 53840

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.6.0.