ProductImageGallery

Domain

Product image viewer: large main image with a thumbnail strip below. Hovering a thumbnail instantly swaps the main image via crossfade. When the image count exceeds thumbsVisible (default 5), the strip grows left/right arrows and becomes a slider.

4 görsel — thumbnail strip

Preview
Sony WH-1000XM5 — frontSony WH-1000XM5 — sideSony WH-1000XM5 — on deskSony WH-1000XM5 — profile1 / 4
Code
<ProductImageGallery
  images={[
    { src: '/front.jpg',   alt: 'Front view' },
    { src: '/side.jpg',    alt: 'Side view' },
    { src: '/on-desk.jpg', alt: 'On desk' },
    { src: '/profile.jpg', alt: 'Profile' },
  ]}
  thumbsVisible={5}
/>

8 görsel — slider aktif

Preview
T-Shirt — white frontT-Shirt — flat layT-Shirt — wornT-Shirt — foldedT-Shirt — detailT-Shirt — color rangeT-Shirt — close upT-Shirt — collection1 / 8
Code
// 8 images, thumbsVisible=5 → arrows appear automatically
<ProductImageGallery
  images={productImages}
  thumbsVisible={5}
/>

Video aspect ratio

Preview
Keyboard — overheadKeyboard — frontKeyboard — RGBKeyboard — backlight1 / 4
Code
<ProductImageGallery
  images={productImages}
  aspect="video"
  thumbsVisible={5}
/>
Sourcemodules/domains/commerce/product/ProductImageGallery.tsx