Skip to content

API > wxt/utils/content-script-ui/types > ContentScriptUi

Interface: ContentScriptUi<TMounted> ​

Contents ​

Extends ​

Type parameters ​

▪ TMounted

Properties ​

autoMount ​

autoMount: (options?) => void

Call ui.autoMount() to automatically mount and remove the UI as the anchor is dynamically added/removed by the webpage.

Parameters ​

▪ options?: AutoMountOptions

Inherited from ​

MountFunctions.autoMount

Source ​

packages/wxt/src/utils/content-script-ui/types.ts:120


mount ​

mount: () => void

Function that mounts or remounts the UI on the page.

Inherited from ​

MountFunctions.mount

Source ​

packages/wxt/src/utils/content-script-ui/types.ts:109


mounted ​

mounted: undefined | TMounted

Source ​

packages/wxt/src/utils/content-script-ui/types.ts:4


remove ​

remove: () => void

Function that removes the UI from the webpage.

Inherited from ​

MountFunctions.remove

Source ​

packages/wxt/src/utils/content-script-ui/types.ts:112


Generated using typedoc-plugin-markdown and TypeDoc