Image Gallery

A responsive photo grid of square tiles, two columns on mobile and three on larger screens, each image cropped to fill. Built with React and Tailwind.

src/registry/ui/image-gallery.tsx/r/image-gallery.json

Installation#

bash
npx shadcn@latest add @minidev/image-gallery

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/image-gallery.json

Usage#

tsx
import { ImageGallery } from "@/components/ui/image-gallery"

export function Example() {
  return <ImageGallery />
}

API reference#

ImageGallery props
PropTypeDefault
imagesGalleryImage[]SAMPLE_IMAGES
classNamestring-

Dependencies#

npm

React only

Built from

All media and upload components

Learn more