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
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The tag to register; kuni-card by default. |
Examples
import { defineCard } from "@johnmorrisdotca/kuni/element";
console.log(defineCard());undefinedWhat it prints (run when this page was built)