Skip to content

API > wxt/client > ContentScriptUi

Interface: ContentScriptUi<TMounted>

Contents

Extended By

Type parameters

TMounted

Properties

mount

mount: () => void

Function that mounts or remounts the UI on the page.

Source

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


mounted

mounted: undefined | TMounted

Custom data returned from the options.mount function.

Source

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


remove

remove: () => void

Function that removes the UI from the webpage.

Source

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


Generated using typedoc-plugin-markdown and TypeDoc