X Enterprises
nuxt-x-affiliate

Latest Reviews

Grid of the most recent reviews with cover image, title, rating, and category badge.

Latest Reviews

The XAFLatestReviews component renders a grid of the most recent reviews on the site. Designed for the homepage "Latest" section or category landing pages.

Components

<XAFLatestReviews />

<XAFLatestReviews :reviews="latestReviews" :limit="6" :columns="3" />

Props

PropTypeDefaultDescription
reviewsReview[]requiredSource reviews, sorted by publish date (descending)
limitnumber6Max number of reviews to render
columns2 | 3 | 43Grid columns at full width
showDatebooleantrueShow publish date on each card
showRatingbooleantrueShow star rating on each card
showCategorybooleantrueShow category badge
titlestring'Latest Reviews'Section heading

Review shape

interface Review {
  slug: string            // url slug for the review page
  title: string           // review title
  image?: string          // cover image
  rating?: number         // 0–5
  reviewCount?: number    // number of user reviews
  category?: string       // category label
  href?: string           // override href (defaults to /reviews/{slug})
  publishedAt?: string    // ISO date
}

Tips

  • Sort the input by publishedAt desc before passing — the component doesn't re-sort.
  • For a "trending" section, sort by view count instead and use <XAFTrending> (different component, similar shape).
  • Pair with <XAFNewsletter> below the grid to capture engaged readers.

AI Context

component: XAFLatestReviews
package: "@xenterprises/nuxt-x-affiliate"
use-when: Homepage or category landing page "Latest reviews" grid
Copyright © 2026