Skip to content

API > wxt/utils/content-script-ui/iframe > createIframeUi

Function: createIframeUi() ​

createIframeUi<TMounted>(ctx, options): IframeContentScriptUi<TMounted>

Create a content script UI using an iframe.

Type parameters ​

▪ TMounted

Parameters ​

▪ ctx: ContentScriptContext

▪ options: IframeContentScriptUiOptions<TMounted>

Iframe options. See ContentScriptUiOptions for shared positioning, anchoring, append, and removal options.

Returns ​

See ​

https://wxt.dev/guide/essentials/content-scripts.html#iframe

Source ​

packages/wxt/src/utils/content-script-ui/iframe.ts:14


Generated using typedoc-plugin-markdown and TypeDoc