API > wxt/client > ShadowRootContentScriptUi
Interface: ShadowRootContentScriptUi<TMounted>
Contents
Extends
ContentScriptUi
<TMounted
>
Type parameters
▪ TMounted
Properties
mount
mount: () =>
void
Function that mounts or remounts the UI on the page.
Inherited from
Source
packages/wxt/src/client/content-scripts/ui/types.ts:43
mounted
mounted:
undefined
|TMounted
Custom data returned from the options.mount
function.
Inherited from
Source
packages/wxt/src/client/content-scripts/ui/types.ts:51
remove
remove: () =>
void
Function that removes the UI from the webpage.
Inherited from
Source
packages/wxt/src/client/content-scripts/ui/types.ts:47
shadow
shadow:
ShadowRoot
The shadow root performing the isolation.
Source
packages/wxt/src/client/content-scripts/ui/types.ts:36
shadowHost
shadowHost:
HTMLElement
The HTMLElement
hosting the shadow root used to isolate the UI's styles. This is the element that get's added to the DOM. This element's style is not isolated from the webpage.
Source
packages/wxt/src/client/content-scripts/ui/types.ts:27
uiContainer
uiContainer:
HTMLElement
The container element inside the ShadowRoot
whose styles are isolated. The UI is mounted inside this HTMLElement
.
Source
packages/wxt/src/client/content-scripts/ui/types.ts:32
Generated using typedoc-plugin-markdown and TypeDoc