interface / @typed/template

WebComponent.Element

A registered element accepts typed input through its props property. Assign a new object to update; nested mutation is not observed.

Package version
1.0.0-beta.13
Category
Web Components
Since
1.0.0
Member of
WebComponent

Import

import { WebComponent } from "@typed/template";

Access WebComponent.Element through the imported WebComponent export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface Element<Props extends object> extends HTMLElement {
    get props(): Props | undefined;
    set props(value: Props);
}

Accessor: props

Undefined until the element has a valid complete input snapshot.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source