[]previous and next page

CustomElementProps

Props of a custom element (a tag name with a hyphen).

Props of a custom element (a tag name with a hyphen). The attribute set is open: any name is accepted and written as a property (el[name] = value), since the element defines its own API.

Import#

ts
import type { CustomElementProps } from "@shadow-js/web";

Signature#

ts
type CustomElementProps = GlobalAttributes<HTMLElement> & {
  children?: JsxChild;
  [name: string]: unknown;
}