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 · YT--LOCAL flag SVG

defaultconstant

Mayotte's local flag: one of the flags of Mayotte (マヨット), YT, in real use, as an SVG string: viewBox 750 by 500 (3:2), 65.3 KB. From Wikimedia Commons, "Flag of Mayotte (Local).svg" (CC0). flag("YT", { variant: "local" }) loads it, and variantsOf("YT") says its status, dates and why it is offered.

Import it

import value from "@johnmorrisdotca/hata/flags/yt--local";

Definition

const svg: string

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/yt--local";

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

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/yt--local";
console.log(svg.startsWith("<svg"),svg.length);
true 66850

What it prints (run when this page was built)

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