Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · Country card element

defineCardfunction

Register <kuni-card> or a host's own tag, preserving an existing definition. Safe without a browser.

Import it

import { defineCard } from "@johnmorrisdotca/kuni/element";

Also exported from: @johnmorrisdotca/kuni/element/define

Definition

function defineCard(tag?: string): void

Parameters

NameTypeDescription
tag (optional)string

The tag to register; kuni-card by default.

Examples

import { defineCard } from "@johnmorrisdotca/kuni/element";
console.log(defineCard());
undefined

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.4.0.