Reference · Playable number grid
ensureKazuPlayStylefunction
Put the style in the page once: in the document's head, or in the shadow root the host is in.
Import it
import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";
Definition
function ensureKazuPlayStyle(host: Element): void
Parameters
| Name | Type | Description |
|---|---|---|
host | Element | The DOM element receiving scoped styles or the native player. |
Examples
import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";
const host = document.createElement("div");
ensureKazuPlayStyle(host);
console.log(host.tagName);