shadowRoot

external val shadowRoot: ShadowRoot?(source)

The shadowRoot read-only property of the ElementInternals interface returns the ShadowRoot for this element.

MDN Reference