Gallery
With lightbox, each image links to its full size file. JavaScript turns
that link into one shared Dialog with previous and next buttons; the arrow
keys also step through images and Escape closes it.
Options
Section titled “Options”images: list of{ src, alt, caption, full };fullis the lightbox image and defaults tosrccolumns:2,3(default),4layout:columns(default),masonry(natural heights),carousel(uses Carousel,columnssets the per-view)ratio:square,portrait,landscape(default),wide; ignored for masonrylightbox: opens images in a Dialog with previous and next controlscaptions: shows captions under images (defaulttrue)surface:light,alternate,brand,darkid: prefix for the lightbox dialog id, needed when a page has more than one gallery
<Gallery title="Samla in use" lightbox images={[ { src: "/gallery/demo-site.jpg", full: "/gallery/demo-site-large.jpg", alt: "The demo site", caption: "The demo site" }, ]}/>More screens
The demo site A Card in its docs preview The Statement section on a dark surface Tokens open in an editor