Skip to content

ModalOpenOptions

Options for platform.modal.open / conn.modal.open.

name: string;

The name of the caller app’s own surface to render as the modal body.


optional params?: unknown;

Structured-clone-serializable params passed to the modal body.


optional presentation?: "card" | "sheet";

How the modal presents on phones (below the shell’s compact breakpoint). card (default) keeps the centered, viewport-capped panel; sheet fills the screen edge-to-edge for maximum body room. No effect above the breakpoint — both render as the normal centered card.


optional title?: string;

Title shown in the shell-owned modal frame.


optional width?: number;

Preferred modal width in pixels; the shell clamps it to the viewport.