E-commerce
ProductGallery
Image gallery with thumbnail strip and click-to-zoom for product pages.
Quick Preview
1
1 / 5
๐+
Installation
npm install lucide-react
// Copy component fromsrc/components/ecommerce/ProductGallery.tsx
Usage
import ProductGallery from '@/components/ecommerce/ProductGallery'<ProductGalleryproductName="My Product"images={['/img/1.jpg', '/img/2.jpg', '/img/3.jpg']}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
images | string[] | - | Array of image URLs (uses placeholders if omitted) |
productName | string | - | Alt text base for images |
className | string | - | Additional CSS classes |