Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
827
export
function
useShadowRoot(): ShadowRoot | null {
828
const
el = __DEV__ ? useHost(
'useShadowRoot'
) : useHost()
829
return
el && el.shadowRoot
830
}
Callers
1
setup
Function · 0.90
Calls
1
useHost
Function · 0.85
Tested by
1
setup
Function · 0.72