Skip to content

API / wxt/utils/content-script-ui/types / ContentScriptOverlayPositioningOptions

Interface: ContentScriptOverlayPositioningOptions ​

Source: packages/wxt/src/utils/content-script-ui/types.ts:55

Contents ​

Properties ​

alignment? ​

optional alignment?: ContentScriptOverlayAlignment

Source: packages/wxt/src/utils/content-script-ui/types.ts:72

When using position: "overlay", the mounted element is 0px by 0px in size. Alignment specifies which corner is aligned with that 0x0 pixel space.

Visualization of alignment options

Default ​

ts
'top-left'

position ​

position: "overlay"

Source: packages/wxt/src/utils/content-script-ui/types.ts:56


zIndex? ​

optional zIndex?: number

Source: packages/wxt/src/utils/content-script-ui/types.ts:61

The z-index used on the positioning element. Set to a positive number to show your UI over website content.


Generated using typedoc-plugin-markdown and TypeDoc