Shot in the studio, mostly on the morning the issue went out.
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.