Skip to main content
Module

x/pouch/deps.ts>customElement

Collection of Web Components
Latest
function customElement
import { customElement } from "https://deno.land/x/pouch@v0.0.8/deps.ts";

The decorator customElement takes the tag name of the custom element and registers the custom element. The same tag name is assigned to the static is property.

Parameters

tagName: string

Returns

(clazz: Constructor<HTMLElement>) => void