MCPcopy
hub / github.com/vuejs/core / useShadowRoot

Function useShadowRoot

packages/runtime-dom/src/apiCustomElement.ts:827–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

825 * of a `defineCustomElement` component.
826 */
827export function useShadowRoot(): ShadowRoot | null {
828 const el = __DEV__ ? useHost('useShadowRoot') : useHost()
829 return el && el.shadowRoot
830}

Callers 1

setupFunction · 0.90

Calls 1

useHostFunction · 0.85

Tested by 1

setupFunction · 0.72