Loupe Surface StudiesPRO

Square studies of material and surface, opening a viewer that hands you a loupe: a round window you drag across the work, redrawing whatever sits under it from the same file at a configurable magnification.

Gallery21: Loupe Surface Studies

A grid of surface studies whose viewer hands you a loupe: a round window you drag across the work, redrawing whatever sits under it at the magnification you set.

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/gallery21?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

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

Quick start

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

tsx
import { Gallery21, gallery21Demo } from "@/components/beste/block/gallery21";

export default function Page() {
  return <Gallery21 {...gallery21Demo} />;
}

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

tsx
import { Gallery21 } from "@/components/beste/block/gallery21";

export default function Page() {
  return (
    <Gallery21
      badge={{ label: "Surface studies" }}
      heading="Close enough to see the tooth of the paper."
      magnification={2.5}
      studies={[
        {
          src: "/studies/ground.jpg",
          alt: "Matte cotton surface, macro",
          title: "Ground, Enlarged",
          artist: "Idris Kane",
          surface: "Pigment on matte cotton",
        },
        {
          src: "/studies/ply.jpg",
          alt: "Plied wool on a spool",
          title: "Ply (Second State)",
          artist: "Nadia Brühl",
          surface: "Undyed wool, unspun ends",
        },
      ]}
      labels={{
        openLabel: "Take the loupe to this work",
        closeLabel: "Put the loupe down",
        previousLabel: "Previous study",
        nextLabel: "Next study",
        loupeLabel: "Move the loupe",
        hint: "Press and drag on the work to move the loupe.",
        counterSeparator: "of",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringSection heading in the header row
studiesStudy[][]Works in the grid, in order
magnificationnumber2.5How much the loupe magnifies the surface under it
labelsGallery21Labels{}Fixed strings that are not content: viewer controls, the loupe label, the hint and the counter separator
lightboxbooleantrueRender the built-in viewer; set false to leave the frames static
classNamestringExtra classes for the outer <section>
ts
type Study = {
  src: string;
  alt: string;
  title: string;
  artist: string;
  surface: string;
};

type Gallery21Labels = {
  openLabel?: string;
  closeLabel?: string;
  previousLabel?: string;
  nextLabel?: string;
  loupeLabel?: string;
  hint?: string;
  counterSeparator?: string;
};

Behavior notes

More Gallery blocks

View all Gallery
PRO

gallery23

Wall Scale Viewer

Works listed with the sizes they are printed at, opening a viewer that hangs the piece in a photographed room and scales it as you switch size pills, so the dimensions stop being an abstraction.

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

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.

PRO

gallery18

Edition Inspector

Matted edition cards opening a viewer that keeps the whole sheet and its detail crops in one place: pill controls swap what the large frame shows while the side column holds process, sheet size and edition.

PRO

gallery11

Full Bleed Strip With Sheet Viewer

Edge-to-edge strip of tall frames opening a viewer where the picture fills the screen and the caption, note and thumbnails sit in a sheet that slides off the bottom when you want the frame uncovered.

PRO

gallery8

Photo Book Spread Viewer

Photographs presented as printed spreads on a soft panel: two plates share a page with a centre rule, round controls turn to the next spread, and a bar index below tracks how far through the book you are.