Skip to content

API > wxt/client > ContentScriptUiOptions

Type alias: ContentScriptUiOptions<TMounted> ​

ContentScriptUiOptions<TMounted>: ContentScriptPositioningOptions & ContentScriptAnchoredOptions & object

Type declaration ​

onRemove ​

onRemove?: (mounted) => void

Callback called before the UI is removed from the webpage. Use to cleanup your UI, like unmounting your Vue or React apps.

Parameters ​

▪ mounted: TMounted | undefined

Type parameters ​

Parameter
TMounted

Source ​

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


Generated using typedoc-plugin-markdown and TypeDoc