variable / @typed/template

WebComponent.CurrentShadowRoot

Selects an open shadow root by default. Provide false for light DOM. The selection is captured when the registration layer or server view runs.

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.CurrentShadowRoot 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 declare const CurrentShadowRoot: Context.Reference<false | ShadowRootOptions>;

Other public imports

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

Source