BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tripled/gallery-grid-block-baseui

Gallery Grid with Lightbox

tripled/gallery-grid-block-baseui
FreeBlock

Filterable image gallery with animated lightbox and navigation (Base UI)

Install it

npx shadcn@latest add https://ui.tripled.work/r/gallery-grid-block-baseui.json

Source

@uitripled/react-baseui/src/components/sections/gallery-grid-block-baseui.tsxui.tripled.work/r/gallery-grid-block-baseui.json · first 6 KB
1"use client";
2
3import { Button } from "@base-ui/react/button";
4import { AnimatePresence, motion } from "framer-motion";
5import { ChevronLeft, ChevronRight, Grid, X, ZoomIn } from "lucide-react";
6import { KeyboardEvent, useState } from "react";
7
8const galleryImages = [
9 {
10 id: 1,
11 url: "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=500",
12 title: "Abstract Architecture",
13 category: "Architecture",
14 },
15 {
16 id: 2,
17 url: "https://images.unsplash.com/photo-1618556450994-a6a128ef0d9d?w=500",
18 title: "Modern Design",
19 category: "Design",
20 },
21 {
22 id: 3,
23 url: "https://images.unsplash.com/photo-1618005198919-d3d4b5a92ead?w=500",
24 title: "Urban Landscape",
25 category: "Nature",
26 },
27 {
28 id: 4,
29 url: "https://images.unsplash.com/photo-1634017839464-5c339ebe3cb4?w=500",
30 title: "Digital Art",
31 category: "Art",
32 },
33 {
34 id: 5,
35 url: "https://images.unsplash.com/photo-1618556450991-2f1af64e8191?w=500",
36 title: "Creative Space",
37 category: "Architecture",
38 },
39 {
40 id: 6,
41 url: "https://images.unsplash.com/photo-1618005198919-d3d4b5a92ead?w=500",
42 title: "Minimalist View",
43 category: "Design",
44 },
45];
46
47export function GalleryGridBlockBaseui() {
48 const [selectedImage, setSelectedImage] = useState<number | null>(null);
49 const [filter, setFilter] = useState<string>("All");
50
51 const categories = [
52 "All",
53 ...new Set(galleryImages.map((img) => img.category)),
54 ];
55
56 const filteredImages =
57 filter === "All"
58 ? galleryImages
59 : galleryImages.filter((img) => img.category === filter);
60
61 const handleNext = () => {
62 if (selectedImage !== null) {
63 const currentIndex = galleryImages.findIndex(
64 (img) => img.id === selectedImage
65 );
66 const nextIndex = (currentIndex + 1) % galleryImages.length;
67 setSelectedImage(galleryImages[nextIndex].id);
68 }
69 };
70
71 const handlePrev = () => {
72 if (selectedImage !== null) {
73 const currentIndex = galleryImages.findIndex(
74 (img) => img.id === selectedImage
75 );
76 const prevIndex =
77 (currentIndex - 1 + galleryImages.length) % galleryImages.length;
78 setSelectedImage(galleryImages[prevIndex].id);
79 }
80 };
81
82 const selectedImageData = galleryImages.find(
83 (img) => img.id === selectedImage
84 );
85
86 const handleCardKeyDown = (
87 event: KeyboardEvent<HTMLDivElement>,
88 imageId: number
89 ) => {
90 if (event.key === "Enter" || event.key === " ") {
91// … truncated

What it pulls in

npm packages

  • framer-motion
  • react

Other registry items

  • button

Files it writes

  • @uitripled/react-baseui/src/components/sections/gallery-grid-block-baseui.tsx

Facts

Registry
tripled
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-08
Last confirmed
3 days ago

Go to the source

ui.tripled.work moumen-soliman/uitripled on GitHub Raw registry item This item as JSON

More from tripled

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
About Us Pageabout-us-page-shadcnuitripledBlocksFree2 deps
About Usabout-us-section-baseuitripledBlocksFree2 deps
About Usabout-us-section-shadcnuitripledBlocksFree2 deps
Auto-Revealing Headingauto-revealing-heading-shadcnuitripledBlocksFree2 deps
Bento Grid Blockbento-grid-block-baseuitripledBlocksFree2 deps
Bento Grid Blockbento-grid-block-shadcnuitripledBlocksFree2 deps
Blog Blockblog-block-baseuitripledBlocksFree2 deps
Blog Blockblog-block-shadcnuitripledBlocksFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex