Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 449 Bytes

File metadata and controls

10 lines (7 loc) · 449 Bytes

Lightbox (sdk.media.lightbox)

The SDK exposes a dynamic import adapter around PhotoSwipe so listing pages pay zero bundle cost until a user opens a full-screen preview.

const { openLightbox } = await import("@agentstack/sdk/media/lightbox");
await openLightbox({ items: [{ src: url, w: 1200, h: 800 }] });

Validate dimensions or use unknown placeholders — Virtuoso-friendly lists should not block on image decode.