Skip to content
vviinn DocsDocs Beta

Shop-the-Look

The Shop-the-Look widget enables interactive visual product discovery directly on images. Users can explore hotspots on fashion, furniture, DIY, and lifestyle images to discover and purchase featured products, creating an engaging shopping experience that bridges inspiration and commerce.

  • Interactive Hotspots: Clickable areas on images reveal product information
  • Visual Search: Powered by AI to identify products within images
  • Multiple Images: Support for single or multiple images across various categories
  • Responsive Design: Adapts to different screen sizes and orientations
  • Widget Styles: Choose between rounded and cornered visual styles
  • Cropper Mode: Enable manual area selection for precise product targeting
  • Upload Mode: Allow users to upload their own images for instant product discovery

image-urls takes several images as a comma-separated list.

Clicking a hotspot opens a modal in the grid view: up to four recommendation tiles. Clicking a tile switches the modal to the detail view: the Product Card of that recommendation, with a back arrow.

Both views are styled on the vviinn-shop-the-look element:

  • Grid view — --shop-the-look-results-grid-width sets the grid width (default 140px); the tiles and their images scale with it. The grid’s CSS parts are listed in the Shop-the-Look reference.
  • Detail view — --shop-the-look-product-card-width sets the card width (default 160px on desktop, 120px on mobile). The card is a regular Product Card, so its variables and CSS parts apply too.

--product-card-image-aspect-ratio sets the image shape in both views.

Custom widths apply to all screen sizes, so this example sets smaller ones for mobile in a media query.