Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias ResponsiveOptions

    What images.responsive adds to an <img>: one srcset candidate per width, each the image's own URL with spool-w=<width>, and sizes when the tag has none. widths is a fixed list, since the proxy only answers a width from it; default 320, 480, 640, 960, 1280 and 1920. sizes defaults to 100vw, which asks for the widest candidate the screen can use, so name the real layout width here for a site whose images fill less of the page.

    type ResponsiveOptions = {
        sizes?: string;
        widths?: readonly number[];
    }
    Index
    sizes?: string
    widths?: readonly number[]