Skip to content

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/key-concepts/content-script-ui.html#shadowroot

Source

packages/wxt/src/client/content-scripts/ui/index.ts:100


Generated using typedoc-plugin-markdown and TypeDoc