Skip to content

Media

Aspect-ratio frame for images, video or artwork, with blur-up loading, optional hover zoom and an optional caption.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/media
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

Ratios

Named aspect ratios keep a grid aligned before anything loads — square, portrait, photo, video, wide and more.

Case Study Grid

A wide lead image over two portraits — the classic case-study spread, with captions in mono.

Linked Tile

Inside a group link, zoom reacts to hovering the whole tile — not just the image.

API Reference

Used in