X Enterprises
nuxt-x-marketing

AffiliateProductGrid

Ranked product grid or list with automatic

AffiliateProductGrid

A full product grid that ranks items automatically — the first three receive #1 Pick, #2 Pick, #3 Pick badges. Optionally shows a disclosure notice at the top. Delegates card rendering to XMarkAffiliateProductCard.

Components

<XMarkAffiliateProductGrid />

A full product grid that ranks items automatically — the first three receive #1 Pick, #2 Pick, #3 Pick badges. Optionally shows a disclosure notice at the top. Delegates card rendering to XMarkAffiliateProductCard.

<XMarkAffiliateProductGrid
  :products="topHeadphones"
  layout="grid"
  :columns="3"
  :show-ranking="true"
  disclosure="This page contains affiliate links. We earn a commission on qualifying purchases."
  button-label="Check Price on Amazon"
  card-layout="card"
/>

List layout for a "best of" article:

<XMarkAffiliateProductGrid
  :products="products"
  layout="list"
  card-layout="row"
  :show-ranking="true"
/>

Props

PropTypeDefaultDescription
productsArray[]Array of product objects
layoutString'grid'Grid or list: 'grid', 'list'
columnsNumber3Columns in grid mode: 2, 3
showRankingBooleantrueAuto-apply rank badges to first 3 products
disclosureString''Disclosure text shown at the top of the grid
buttonLabelString'Check Price on Amazon'CTA label passed to each card
cardLayoutString'card'Card layout passed to each card: 'card', 'row', 'compact'

AI Context

category: Affiliate
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkAffiliateProductGrid
use-when: >
  Building the main product section of affiliate "best of" round-up articles.
  Automatically ranks the first three products with pick badges and includes
  an optional disclosure notice.
typical-page-section: Main content section of affiliate round-up articles.
Copyright © 2026