Lightbox Frame GridPRO

Captioned image grid where any tile opens a full-screen lightbox on a dark scrim, with a frame counter, keyboard arrows, escape to close and previous and next controls beside the caption.

Gallery2: Lightbox Frame Grid

A plain grid of captioned frames with a full-screen dark viewer behind them: counter top left, close top right, the picture at full height and the caption on a rule with the step controls.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/gallery2?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/gallery2?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/gallery2.tsx plus the badge7 eyebrow it uses.

Quick start

The installed file exports gallery2Demo alongside the block: the exact props behind the preview above. Spread it to get a working gallery in one line.

tsx
import { Gallery2, gallery2Demo } from "@/components/beste/block/gallery2";

export default function Page() {
  return <Gallery2 {...gallery2Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Gallery2 } from "@/components/beste/block/gallery2";

export default function Page() {
  return (
    <Gallery2
      badge={{ label: "Selected frames" }}
      heading="Tap any frame to see it properly."
      items={[
        {
          src: "/frames/stairwell.jpg",
          alt: "Concrete stairwell lit from one window",
          title: "Stairwell, north wing",
          meta: "North wing, March 2026",
        },
        {
          src: "/frames/issues.jpg",
          alt: "Stacked printed magazines",
          title: "Six issues, one grid",
          meta: "On the press floor, 2025",
        },
      ]}
      labels={{
        closeLabel: "Close",
        previousLabel: "Previous frame",
        nextLabel: "Next frame",
        counterSeparator: "of",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringSection heading above the grid
itemsLightboxImage[][]Photographs in the grid, in order
labelsGallery2Labels{}Fixed strings that are not content: viewer controls and the counter separator
lightboxbooleantrueRender the built-in viewer; set false to leave the frames static
classNamestringExtra classes for the outer <section>
ts
type LightboxImage = {
  src: string;
  alt: string;
  title: string;
  meta: string;
};

type Gallery2Labels = {
  closeLabel?: string;
  previousLabel?: string;
  nextLabel?: string;
  counterSeparator?: string;
};

Behavior notes

More Gallery blocks

View all Gallery
PRO

gallery10

Overview Toggle Viewer

Square grid whose viewer holds two states: a single frame with caption and controls, or an in-place overview of the whole set that you can jump from without closing the layer.

PRO

gallery3

Filterable Album Grid

Album gallery with pill filters that swap the whole set below, where any tile opens a light full-screen viewer: the frame hangs on the page surface while a side column carries the caption, the album summary, the controls and a plainly labelled thumbnail index.

PRO

gallery6

Mosaic Full Screen Viewer

Dense caption-free mosaic where every tile carries an expand seal and opens a full-screen viewer with arrow controls on the picture, escape and arrow keys, a counter, the caption and a thumbnail filmstrip.

PRO

gallery1

Masonry Caption Gallery

Masonry gallery built with CSS columns so images keep their own heights, each captioned with its subject and place, and any frame opening a drawer that slides in from the right while the wall stays visible behind the scrim.

PRO

gallery7

Counter Scrolling Image Bands

Two full-bleed image tracks scrolling in opposite directions under a centered statement, pausing together on hover, where any frame opens a framed viewer: the picture sits in a mount on a scrim with its caption, position and controls beneath it.

PRO

gallery9

Zoomable Justified Gallery

Justified rows of frames that grow to fill every line, opening a viewer whose picture doubles as the zoom control: clicking switches between fitting the screen and filling it, with the caption and controls on one closing rule.