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, or a note when there are none yet.

Parts

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

Styling

All of Review Cards’s styles live in review-cards.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
reka-ui

Built from

API reference

ReviewCards.vue

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

Props 16

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'
emptyLabelstring'No reviews yet.'
localestring—
classClassValue—

Events 1

EventPayload
write-review—

Recipe review-cards 1 group

Recipe review-cards-author 1 group

Recipe review-cards-average 1 group

Recipe review-cards-content 1 group

Recipe review-cards-heading 1 group

Recipe review-cards-percent 1 group

Recipe review-cards-star 1 group

Recipe review-cards-summary 1 group

Recipe part-title-lg 1 group

Recipe hint 1 group

Recipe meta 1 group

Review Cards