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.
A square grid whose viewer holds two states: the single frame, and an overview of the whole set you can jump from without closing anything.
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/gallery10?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/gallery10?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/gallery10.tsx plus the badge7 eyebrow it uses.
The installed file exports gallery10Demo alongside the block: the exact props behind the preview above. Spread it to get a working gallery in one line.
import { Gallery10, gallery10Demo } from "@/components/beste/block/gallery10";
export default function Page() {
return <Gallery10 {...gallery10Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Gallery10 } from "@/components/beste/block/gallery10";
export default function Page() {
return (
<Gallery10
badge={{ label: "The whole set" }}
heading="Open one frame, or step back and see all of them."
description="The viewer keeps an overview a single click away."
frames={[
{ src: "/set/stair.jpg", alt: "Stairwell with one window", caption: "Stairwell, one window", meta: "Rotterdam, April" },
{ src: "/set/facade.jpg", alt: "Facade under a flat sky", caption: "Facade, flat sky", meta: "Rotterdam, April" },
]}
labels={{
openLabel: "Open this frame",
closeLabel: "Close the viewer",
previousLabel: "Previous frame",
nextLabel: "Next frame",
overviewLabel: "Show every frame",
overviewTitle: "All frames",
counterSeparator: "of",
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow label rendered as a Badge7 |
heading | string | – | Section heading in the left header column |
description | string | – | Supporting paragraph in the right header column |
frames | Frame[] | [] | Pictures in the grid, in order |
labels | Gallery10Labels | {} | Fixed strings that are not content: viewer controls, the overview label and title, and the counter separator |
lightbox | boolean | true | Render the built-in viewer; set false to leave the frames static |
className | string | – | Extra classes for the outer <section> |
type Frame = {
src: string;
alt: string;
caption: string;
meta: string;
};
type Gallery10Labels = {
openLabel?: string;
closeLabel?: string;
previousLabel?: string;
nextLabel?: string;
overviewLabel?: string;
overviewTitle?: string;
counterSeparator?: string;
};opacity-50 when they are not the open frame, marking the position without a border or a colour.lightbox={false} disables every grid button and switches the cursor back to default, leaving a plain square wall.background shades on a bg-foreground/95 surface, correct for a panel that is dark in both themes.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.
gallery6
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.
gallery5
Cinematic stage frame with the caption and frame counter set on a gradient at its foot, round arrow controls on the picture itself, and a scrolling filmstrip below where the inactive thumbnails sit back at low opacity.