Skip to content

API / wxt / PopupEntrypointOptions

Interface: PopupEntrypointOptions ​

Source: packages/wxt/src/types.ts:883

Contents ​

Extends ​

Properties ​

actionType? ​

optional actionType?: PerBrowserOption<"browser_action" | "page_action">

Source: packages/wxt/src/types.ts:891

The type of action to use in the manifest.

In MV2, defaults to "browser_action". In MV3, "browser_action" is converted to "action", while "page_action" is kept as-is (Firefox MV3 only).


browserStyle? ​

optional browserStyle?: PerBrowserOption<boolean>

Source: packages/wxt/src/types.ts:902


defaultArea? ​

optional defaultArea?: PerBrowserOption<"navbar" | "menupanel" | "tabstrip" | "personaltoolbar">

Source: packages/wxt/src/types.ts:909

Firefox only. Defines the part of the browser in which the button is initially placed.

See ​

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/action#default_area


defaultIcon? ​

optional defaultIcon?: Record<string, string>

Source: packages/wxt/src/types.ts:894


defaultState? ​

optional defaultState?: PerBrowserOption<"enabled" | "disabled">

Source: packages/wxt/src/types.ts:901

Chrome only. Controls the initial enabled/disabled state of the action.

See ​

https://developer.chrome.com/docs/extensions/reference/api/action#enabled_state


defaultTitle? ​

optional defaultTitle?: PerBrowserOption<string>

Source: packages/wxt/src/types.ts:895


exclude? ​

optional exclude?: string[]

Source: packages/wxt/src/types.ts:680

List of target browsers to exclude this entrypoint from. Cannot be used with include. You must choose one of the two options.

Default ​

ts
undefined

Inherited from ​

BaseEntrypointOptions.exclude


include? ​

optional include?: string[]

Source: packages/wxt/src/types.ts:673

List of target browsers to include this entrypoint in. Defaults to being included in all builds. Cannot be used with exclude. You must choose one of the two options.

Default ​

ts
undefined

Inherited from ​

BaseEntrypointOptions.include


mv2Key? ​

optional mv2Key?: PerBrowserOption<"browser_action" | "page_action">

Source: packages/wxt/src/types.ts:893

Deprecated ​

Use actionType instead.


themeIcons? ​

optional themeIcons?: ThemeIcon[]

Source: packages/wxt/src/types.ts:917

Firefox only. Icons for light and dark themes.

See ​

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/action#theme_icons


Generated using typedoc-plugin-markdown and TypeDoc