Gallery Grid
Free Gallery React component — GalleryGridCard. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.
Album preview with title, subtitle, and a three-cell photo grid — last cell shows a +N overflow count. Portfolio and gallery index pages.
Preview
Summer Collection
24 photos · Jun 2026



+21
Setup
How to use
Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.
- 1
Run in your terminal:
$npm install clsx tailwind-merge lucide-react - 2
Copy
lib/cn.tsbelow. Skip if you already havecn(). - 3
Copy the code below and create
components/gallery/gallery-grid-card.tsxin your project. - 4
Import and render:
Exampleimport { GalleryGridCard } from "@/components/gallery/gallery-grid-card";
lib/cn.ts
import { cn } from '@/lib/cn';// Full source is available in the repository checkout.
components/gallery/gallery-grid-card.tsx
// Full source: components/components/gallery/gallery-grid-card.tsx// The Cloudflare worker does not expose the source tree at request time.