# Marketing Gallery: Grid Gallery

A responsive grid of evenly sized image tiles. Use it to display many photos, products, or case studies at once with a clean, scannable layout.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/grid-gallery
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/grid-gallery.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-gallery-grid-gallery
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-gallery-grid-gallery.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/marketing/gallery/grid-gallery`

## About this block

Grid Gallery is a responsive image grid with a live category filter bar
above it. The filter row holds an "All" button followed by one pill button
per unique category derived from the images. Below it, images are arranged
in equal square tiles across one to four columns depending on screen width.
Each tile shows category badges in the top right corner, and on hover a
semi-transparent overlay slides in from the bottom with the image caption.

Every image carries an array of categories that drives both the filter
buttons and the per-tile badges. You can add or remove images, rename
categories, or set the `enableFiltering` flag to hide the filter row
entirely. The grid reflows automatically, so the item count is not fixed.

## When to use

Reach for this block when you need to present a sizeable collection of
visuals and want visitors to narrow them down without leaving the page.
It is a better fit than a carousel when the audience wants to compare
items side by side, and better than a masonry layout when uniform tile
sizes keep the content feeling structured and professional. For a creative
agency or studio it works well on a "Work" or "Projects" page where clients
browse by discipline before clicking through for detail.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to introduce the
  collection with a headline and brief context before the grid opens up
- [About Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/about-sections) to establish the
  studio's background so the work feels grounded

**After**

- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to convert interest into
  an enquiry after visitors have browsed the full gallery
- [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) to reinforce quality with
  client feedback directly below the visual proof

## What you can display

The grid suits any collection that benefits from category-level browsing.
Three ways to use it beyond the default city photography demo:

- **Client work by discipline.** Tag each project with the services
  delivered, such as Brand, Motion, or Web, so prospects filter to the
  work most relevant to them.
- **Before and after shots.** Group pairs under a shared category label so
  viewers can isolate one transformation type across the whole portfolio.
- **Event or campaign photography.** Organise photos from multiple shoots
  under event names so attendees can jump straight to their session.

> Tip: keep category names short, ideally one word, so the filter row stays
> on a single line at typical viewport widths and does not push the grid down.

## More in Marketing Gallery

- [Carousel Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/carousel-gallery)
- [Filmstrip Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/filmstrip-gallery)
- [Fullscreen Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/fullscreen-gallery)
- [Immersive Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/immersive-gallery)
- [Polaroid Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/polaroid-gallery)
- [Portfolio Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/portfolio-gallery)
