API > wxt/client > createShadowRootUi
Function: createShadowRootUi()
createShadowRootUi<
TMounted
>(ctx
,options
):Promise
<ShadowRootContentScriptUi
<TMounted
>>
Create a content script UI inside a ShadowRoot
.
This function is async because it has to load the CSS via a network call.
Type parameters
▪ TMounted
Parameters
▪ ctx: ContentScriptContext
▪ options: ShadowRootContentScriptUiOptions
<TMounted
>
Returns
See
https://wxt.dev/guide/essentials/content-scripts.html#shadow-root
Source
packages/wxt/src/client/content-scripts/ui/index.ts:101
Generated using typedoc-plugin-markdown and TypeDoc