Skip to content

Image Gallery

Images in a grid, masonry columns or a scrolling strip, with a lightbox you can use by keyboard, swipe or buttons.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/image-gallery
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Masonry

Mixed aspect ratios in balanced columns. Every image stays uncropped, which suits photography.

Strip

A horizontal, snap-scrolling row that fits a lot of work into one line of a case study.

API Reference

Used in