X Enterprises
nuxt-x-marketing

AffiliateProductCard

Single affiliate product card in card, row, or compact layout with image, rating, price, pros/cons, and affiliate CTA button.

AffiliateProductCard

A versatile product card with three layout modes. The card layout is a vertical portrait card suitable for grids. The row layout is a wider horizontal card. The compact layout is a minimal single-row item for "also consider" lists.

Components

<XMarkAffiliateProductCard />

A versatile product card with three layout modes. The card layout is a vertical portrait card suitable for grids. The row layout is a wider horizontal card. The compact layout is a minimal single-row item for "also consider" lists.

<XMarkAffiliateProductCard
  :product="{
    name: 'Sony WH-1000XM5',
    image: '/products/sony-xm5.jpg',
    price: '$349.99',
    originalPrice: '$399.99',
    rating: 4.8,
    reviewCount: 24500,
    pros: ['Best-in-class ANC', '30-hour battery', 'Foldable design'],
    cons: ['Premium price', 'No IP rating'],
    affiliateUrl: 'https://amazon.com/dp/B09XS7JWHH?tag=mysite-20',
    badge: '#1 Pick',
  }"
  layout="card"
  :show-pros="true"
  :show-cons="false"
  :show-rating="true"
  :show-price="true"
  button-label="Check Price on Amazon"
  button-icon="i-lucide-external-link"
/>

Props

PropTypeDefaultDescription
productObjectExample productProduct object { name, image?, price?, originalPrice?, rating?, reviewCount?, pros?, cons?, affiliateUrl, badge? }
layoutString'card'Display layout: 'card', 'row', 'compact'
showProsBooleantrueShow pros list
showConsBooleanfalseShow cons list
showRatingBooleantrueShow star rating
showPriceBooleantrueShow price
buttonLabelString'Check Price on Amazon'CTA button label
buttonIconString'i-lucide-external-link'CTA button trailing icon
disclosureString''Per-card small disclosure text

AI Context

category: Affiliate
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkAffiliateProductCard
use-when: >
  Rendering individual affiliate product cards. Typically composed inside
  XMarkAffiliateProductGrid, but can also be used standalone for featured
  product picks or "also consider" compact lists.
typical-page-section: Inside product grids, featured product sections, comparison sidebars.
Copyright © 2026