AskSQL API Reference (core v0.10.0)
    Preparing search index...

    Interface MountOptions

    interface MountOptions {
        connectionId?: string;
        headers?: Record<string, string>;
        mode?: "bubble" | "chat";
        nonce?: string;
        offset?: number | { x?: number; y?: number };
        position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
        requireApproval?: boolean;
        serverUrl: string;
        suggestions?: readonly string[];
        target?: string | HTMLElement;
        theme?: "light" | "dark" | "auto";
        title?: string;
        zIndex?: number;
    }
    Index
    connectionId?: string
    headers?: Record<string, string>
    mode?: "bubble" | "chat"

    'bubble' (floating, default) or 'chat' (fills the target).

    nonce?: string

    CSP nonce for the injected stylesheet (strict-CSP pages).

    offset?: number | { x?: number; y?: number }

    Distance (px) from the corner.

    position?: "bottom-right" | "bottom-left" | "top-right" | "top-left"

    Corner for the bubble; avoids overlapping the host's own fixed UI.

    requireApproval?: boolean

    Gate every query behind a Run button. Off by default (results auto-run).

    serverUrl: string

    Sidecar base URL (required for HTTP mode).

    suggestions?: readonly string[]
    target?: string | HTMLElement

    CSS selector or element to mount into. Defaults to document.body (bubble).

    theme?: "light" | "dark" | "auto"
    title?: string
    zIndex?: number

    Stacking order relative to the host page.