ensureSuidoPlayStylefunction
Put the style in the page once: in the document's head, or in the shadow root the host is in.
Import it
import { ensureSuidoPlayStyle } from "@johnmorrisdotca/suido/play";
Definition
function ensureSuidoPlayStyle(host: Element): void
Parameters
| Name | Type | Description |
|---|---|---|
host | Element | The DOM host for the scoped native board styles. |
Examples
import { ensureSuidoPlayStyle } from "@johnmorrisdotca/suido/play";
const host = document.createElement("div");
document.body.append(host);
ensureSuidoPlayStyle(host);
console.log(host.tagName);