review-cards

Review Cards

Review section with the average score, distribution bars, a write-a-review prompt, and dated reviews marked when the purchase is verified.

States: Default

Parts

PartFileDoes
ReviewCardsReviewCards.vueShows the average rating with its breakdown, review cards and a write-a-review prompt.

Styling

PartRecipe
ReviewCardsreview-cards
ReviewCardsreview-cards-heading
ReviewCardsreview-cards-average
ReviewCardsreview-cards-summary
ReviewCardsreview-cards-star
ReviewCardsreview-cards-percent
ReviewCardsreview-cards-author
ReviewCardsreview-cards-content
ReviewCardspart-title-lg
ReviewCardshint
ReviewCardsmeta

Install

Writes 3 files into components/sections/review-cards/. For agents, npx @frontic/ui docs review-cards prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue
reka-ui

Built from

API reference

ReviewCards ReviewCards.vue

Shows the average rating with its breakdown, review cards and a write-a-review prompt. Renders a <div>.

PropTypeDefault
averagenumber0
totalCountnumber0
countsRatingCount[][]
reviewsReviewItem[][]
titlestring'Customer Reviews'
summaryLabel((count: number) => string)`Based on ${count} ${count === 1 ? 'review' : 'reviews'}`
distributionLabelstring'Review data'
starReviewsLabelstring'star reviews'
shareTitlestring'Share your thoughts'
shareTextstring'If you've used this product, share your thoughts with other customers'
writeReviewLabelstring'Write a review'
reviewsLabelstring'Recent reviews'
verifiedLabelstring'Verified purchase'
localestring'en-US'
classClassValue—
EventPayload
write-review—
Recipe review-cardsSets
base: review-cards 1 property
Recipe review-cards-headingSets
base: review-cards-heading 3 properties
Recipe review-cards-averageSets
base: review-cards-average 1 property
Recipe review-cards-summarySets
base: review-cards-summary 1 property
Recipe review-cards-starSets
base: review-cards-star 3 properties
Recipe review-cards-percentSets
base: review-cards-percent 2 properties
Recipe review-cards-authorSets
base: review-cards-author 2 properties
Recipe review-cards-contentSets
base: review-cards-content 3 properties · 2 inherited
Recipe part-title-lgSets
base: part-title-lg 4 properties
Recipe hintSets
base: hint 2 properties
Recipe metaSets
base: meta 3 properties
Example