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.
The show read as a walk: works stacked down the page on their mounts, with a sticky rail that marks whichever one holds the middle of the screen and jumps to any other.
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/gallery14?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/gallery14?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/gallery14.tsx plus the badge7 eyebrow it uses.
The installed file exports gallery14Demo alongside the block: the exact props behind the preview above. Spread it to get a working gallery in one line.
import { Gallery14, gallery14Demo } from "@/components/beste/block/gallery14";
export default function Page() {
return <Gallery14 {...gallery14Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Gallery14 } from "@/components/beste/block/gallery14";
export default function Page() {
return (
<Gallery14
badge={{ label: "Walk the show" }}
heading="Scroll the exhibition the way you would walk it."
dates="Rooms one to three, until 2 June"
works={[
{
src: "/show/01.jpg",
alt: "Letterpress work on rag paper",
number: "01",
title: "Alphabet for a Quiet Room",
artist: "Hélène Marchal",
medium: "Letterpress on rag paper, 2025",
room: "One",
note: "Hung first because it sets the pace for the room.",
},
{
src: "/show/02.jpg",
alt: "Folded paper work",
number: "02",
title: "Fold, Unfolded",
artist: "Marta Ekelund",
medium: "Folded cotton paper, 2024",
room: "One",
note: "Lit from one side only, so it changes shape as you cross the room.",
},
]}
labels={{ indexTitle: "Where you are", roomTitle: "Room", jumpLabel: "Go to this work" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow label rendered as a Badge7 |
heading | string | – | Section heading in the header row |
dates | string | – | Run of the show, set opposite the heading |
works | Work[] | [] | Works in hanging order, top to bottom |
labels | Gallery14Labels | {} | Fixed strings that are not content: the rail title, the room title and the jump label |
className | string | – | Extra classes for the outer <section> |
type Work = {
src: string;
alt: string;
number: string;
title: string;
artist: string;
medium: string;
room: string;
note: string;
};
type Gallery14Labels = {
indexTitle?: string;
roomTitle?: string;
jumpLabel?: string;
};IntersectionObserver with rootMargin: "-45% 0px -45% 0px", so the marked entry is whichever work owns the middle band of the viewport rather than whatever is merely on screen.block: "center" and behavior: "smooth", which puts the target in the same band the observer is watching, so the mark lands where you expect.aria-current, so the state is announced as well as drawn.md:sticky md:top-24 md:self-start, and self-start is what allows it to stick at all inside a grid.bg-muted mounts with the picture on bg-background, so each one reads as hung rather than as a card in a feed.gallery12
Works of different sizes hung on one centre line inside a matted wall panel, each with its own label, opening a viewer that shows the piece in a mount beside a museum wall label of medium, dimensions and year.
gallery16
Exhibition split into artist rooms, each with a sticky statement column beside its works, opening a viewer that shows the chosen piece large with the next one waiting as a thumbnail you can step straight into.
gallery7
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.
gallery1
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.