A square cover grid that names each picture only on hover and opens it full screen on click, where arrows and the keyboard walk the archive and a link leads into the issue itself.
A square cover grid that names each picture only on hover and opens it full screen on click, where arrows and the keyboard walk the archive and a link leads into the issue itself.
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.
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
npx shadcn add "https://ui.beste.co/r/gallery26?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/gallery26?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/gallery26.tsx and the badge6 component it uses for the eyebrow (installed to components/beste/component/badge6.tsx).
The installed file exports gallery26Demo alongside the block: the exact props behind the preview above. Spread it to get a working cover grid in one line.
import { Gallery26, gallery26Demo } from "@/components/beste/block/gallery26";
export default function CoversPage() {
return <Gallery26 {...gallery26Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Gallery26 } from "@/components/beste/block/gallery26";
export default function CoversPage() {
return (
<Gallery26
eyebrow="Covers"
heading="Every issue has its own picture"
readLabel="Read this issue"
closeLabel="Close"
covers={[
{
image: { src: "/covers/042.jpg", alt: "Notes across a table" },
title: "The quote we lost on purpose",
issue: "042",
href: "/letters/042",
},
]}
note="Shot in the studio, on the morning the issue went out."
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Badge6 label, sharing a row with the note |
heading | string | – | Section heading under the rule |
covers | Cover[] | [] | Square tiles, four across on desktop |
readLabel | string | – | Link into the issue, inside the lightbox |
closeLabel | string | – | Label on the lightbox close button |
note | string | – | Line beside the eyebrow |
className | string | – | Extra classes for the outer section |
type Cover = {
image: CoverImage;
title: string;
issue: string;
href: string;
};
type CoverImage = {
src: string;
alt: string;
};body scrolling and restores the previous value on close, so the page behind does not drift while the overlay is up.gallery2
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.
gallery3
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.
gallery10
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.
gallery14
Long-scroll exhibition where every work sits in its own matted panel with a full label, beside a sticky rail whose numbered index follows the work in the middle of the screen and scrolls to any other on click.