Skip to main content

Type Alias: HoverContentDto

HoverContentDto = { kind: "text"; text: string; } | { allowImages?: boolean; kind: "markdown"; markdown: string; } | { height?: number; kind: "iframe"; uiEntry: string; width?: number; }

Defined in: Extensions/ExtensionApiDtos.ts:190

Union Members

Type Literal

{ kind: "text"; text: string; }


Type Literal

{ allowImages?: boolean; kind: "markdown"; markdown: string; }

allowImages?

optional allowImages?: boolean

Allow inline images. Sources must be in the extension's webview CSP allowlist.

kind

kind: "markdown"

markdown

markdown: string


Type Literal

{ height?: number; kind: "iframe"; uiEntry: string; width?: number; }

height?

optional height?: number

kind

kind: "iframe"

uiEntry

uiEntry: string

Path under ext-ui:///. The hover popup mounts this in a small sandboxed iframe.

width?

optional width?: number