Skip to content

Product Display Components

Components for the product detail page — gallery, cards, tabs, variant pickers, and layout.

Product page — gallery, variant swatches, quantity stepper, add to cart

Component Slots

SlotVariantsDefaultDescription
cardStandard, Minimal, Horizontal, FeaturedstandardProduct card in grids
galleryCarousel, Grid, SinglecarouselProduct image gallery
layoutMasonrymasonryProduct page layout
variant-pickerSwatch, Dropdown, ButtonswatchConfigurable option selector
tabsAccordion, TabbedtabbedProduct info tabs (description, specs, reviews)
pricePrice display with sale/tier pricing
badgeSale, new, out-of-stock badges
quantity-stepper+/- quantity selector
sticky-atcSticky add-to-cart bar on scroll
stock-indicatorIn stock / low stock / out of stock
info-panelShipping, returns, warranty info
breadcrumbCategory breadcrumb trail
recently-viewedRecently viewed products carousel

Card Variants

CardStandard

Full-featured card with image, price, ratings, quick-add button, and color swatches.

┌──────────────────┐
│                  │
│     [Image]      │
│                  │
├──────────────────┤
│ Product Name     │
│ ★★★★☆ (12)      │
│ $49.95  $39.95   │
│ [● ● ● ●]       │
│ [Add to Cart]    │
└──────────────────┘

CardMinimal

Borderless, image-focused card. Image zooms on hover. No quick-add button — click navigates to product page.

┌──────────────────┐
│                  │
│   [Image zoom]   │
│                  │
│ Product Name     │
│ $49.95           │
└──────────────────┘

CardHorizontal

Landscape card for list-view layouts. Image on left, details on right.

CardFeatured

Oversized card for hero product placement. Larger image, prominent pricing.

GalleryCarousel

Horizontal thumbnail strip below main image. Click thumbnails to switch. Supports keyboard arrow navigation and mobile swipe gestures.

GalleryGrid

All images displayed in a grid layout. No carousel — all images visible at once. Ideal for products with few images.

GallerySingle

Single large image only. Minimal layout for simple products.

Variant Picker

VariantSwatch

Color/size options as clickable swatches. Colors show actual color circles. Sizes show text labels. Unavailable combinations are crossed out.

VariantDropdown

Traditional dropdown selects for each configurable attribute. Shows available stock for each option.

VariantButton

Button-style option selection. Each option is a toggleable button in a row.

Configuration

json
{
  "pages": {
    "product": {
      "components": {
        "gallery": "carousel",
        "card": "minimal",
        "variant-picker": "swatch",
        "tabs": "accordion",
        "layout": "masonry"
      },
      "sections": {
        "showReviews": true,
        "reviewsPosition": "tabbed",
        "showRelated": true,
        "showRecentlyViewed": true
      }
    }
  }
}

Source: src/templates/components/product-display/