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.
Photographs sorted into albums, switched with pill filters and a summary line that carries the frame count. The viewer opens on the page's own surface, with the picture on one side and a detail column holding the caption, the controls and the rest of the album.
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/gallery3?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/gallery3?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/gallery3.tsx plus the badge7 eyebrow it uses.
The installed file exports gallery3Demo alongside the block: the exact props behind the preview above. Spread it to get a working gallery in one line.
import { Gallery3, gallery3Demo } from "@/components/beste/block/gallery3";
export default function Page() {
return <Gallery3 {...gallery3Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Gallery3 } from "@/components/beste/block/gallery3";
export default function Page() {
return (
<Gallery3
badge={{ label: "Albums" }}
heading="Three years of work, sorted by where it happened."
albums={[
{
label: "In the studio",
summary: "Desks, walls and the state of the floor between deadlines.",
images: [
{ src: "/albums/studio-1.jpg", alt: "Specimens on a desk", caption: "Specimens, mid-selection" },
{ src: "/albums/studio-2.jpg", alt: "Team at a shared table", caption: "Thursday review" },
],
},
{
label: "On site",
summary: "Installations, mostly photographed before anyone arrived.",
images: [
{ src: "/albums/site-1.jpg", alt: "Signage on a lobby wall", caption: "Wayfinding, level two" },
],
},
]}
labels={{
countSuffix: "frames",
openLabel: "Open this frame",
closeLabel: "Close the viewer",
previousLabel: "Previous frame",
nextLabel: "Next frame",
counterSeparator: "of",
detailTitle: "Also in this album",
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow label rendered as a Badge7 |
heading | string | – | Section heading above the filters |
albums | Album[] | [] | Albums, first one selected on mount |
labels | Gallery3Labels | {} | Fixed strings that are not content: count suffix, viewer controls, counter separator and the detail column title |
lightbox | boolean | true | Render the built-in viewer; set false to leave the frames static |
className | string | – | Extra classes for the outer <section> |
type Album = {
label: string;
summary: string;
images: AlbumImage[];
};
type AlbumImage = {
src: string;
alt: string;
caption: string;
};
type Gallery3Labels = {
countSuffix?: string;
openLabel?: string;
closeLabel?: string;
previousLabel?: string;
nextLabel?: string;
counterSeparator?: string;
detailTitle?: string;
};bg-background, with the picture on the page's own surface and a bordered detail column beside it, so nothing is layered on top of the photograph.opacity-40 when they are not the open frame, which marks the position without adding a border or a colour.lightbox={false} disables every frame button and switches the cursor back to default, leaving a plain filterable grid.countSuffix you supply, so it stays translatable without string concatenation in the block.md the detail column moves under the picture and gains a top border instead of a left one, so the viewer stays usable on a phone.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.
gallery9
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.
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.
gallery18
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.