Skip to content

API / wxt/utils/content-script-ui/integrated / IntegratedContentScriptUiOptions

Type Alias: IntegratedContentScriptUiOptions<TMounted>

IntegratedContentScriptUiOptions<TMounted> = ContentScriptUiOptions<TMounted> & object

Source: packages/wxt/src/utils/content-script-ui/integrated.ts:63

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

Returns

TMounted

tag?

optional tag?: string

Tag used to create the wrapper element.

Default

ts
'div'

Type Parameters

TMounted

TMounted


Generated using typedoc-plugin-markdown and TypeDoc