shadowRoot

external val shadowRoot: ShadowRoot?(source)

The Element.shadowRoot read-only property represents the shadow root hosted by the element.

MDN Reference