Product Gallery 1 - Thumbnails with keyboard navigation

A main product image with previous/next buttons, an image counter and a thumbnail strip below; arrow keys, Home and End move through images when the gallery is focused. Use it as an accessible default gallery on any product detail page.

About Product Gallery 1

A main product image with previous/next buttons, an image counter and a thumbnail strip below; arrow keys, Home and End move through images when the gallery is focused. Use it as an accessible default gallery on any product detail page.

Product Gallery 1 is a free product gallery block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 119 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • gallery
  • thumbnails
  • keyboard
  • product
  • carousel
  • accessibility

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/product-gallery-01

Dependencies installed automatically: lucide-react, motion.

Uses: button, reveal, use-reduced-motion, utils.

Usage

import ProductGallery01 from "@/components/blocks/product-gallery-01"

export default function Page() {
  return <ProductGallery01 />
}

FAQ