Skip to content

API > wxt/client > IntegratedContentScriptUiOptions

Type alias: IntegratedContentScriptUiOptions<TMounted>

IntegratedContentScriptUiOptions<TMounted>: ContentScriptUiOptions<TMounted> & object

Type declaration

onMount

onMount: (wrapper) => TMounted

Callback executed when mounting the UI. This function should create and append the UI to the wrapper element. It is called every time ui.mount() is called.

Optionally return a value that can be accessed at ui.mounted or in the onRemove callback.

Parameters

wrapper: HTMLElement

tag

tag?: string

Tag used to create the wrapper element.

Default

ts
"div"

Type parameters

Parameter
TMounted

Source

packages/wxt/src/client/content-scripts/ui/types.ts:52


Generated using typedoc-plugin-markdown and TypeDoc