Back to blocks
BlockPortfolioFree

Portfolio Grid Block React component

A portfolio grid with wide and tall tiles packed densely, a sliding category filter that reflows the grid, hover reveals with client and year, and a lightbox with details, next and previous, keyboard arrows and Escape.

About the Portfolio Grid Block component

Portfolio Grid Block shows projects as a packed grid of image tiles. Tiles can be normal, wide (two columns) or tall (two rows), and the grid fills gaps automatically, so a mix of landscape and portrait work looks deliberate. A sliding filter at the top shows one category at a time and the tiles glide into their new places.

Hovering or focusing a tile zooms the image a little and reveals the client and year. Clicking opens a lightbox with a large image, the description and details, and next and previous buttons; arrow keys step through the projects, Escape closes and focus goes back to the tile you opened.

When to use it

Use it on a studio, agency, photographer or freelancer site to show selected work.

Turn off the lightbox and give items an href if every project has its own case study page.

Installation

Add the Portfolio Grid Block component to your project with the shadcn CLI. It lands in components/portfolio-grid-block.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/portfolio-grid-block

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

Booking / Reservation Form
Free
Integrations Grid
Free
Blog Section
Free
Logo Cloud / Trusted By
Free
Content Section
Free
Newsletter Signup Section
Free