reviews

Reviews

Review summary card with the average rating, a star distribution, the latest reviews with verified-purchase marks, and read-all and write-a-review actions.

Parts

PartFileDoes
ReviewsReviews.vueShows the average rating with its star breakdown and a few reviews.

Styling

All of Reviews’s styles live in reviews.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
reka-ui

Built from

API reference

Reviews.vue

Shows the average rating with its star breakdown and a few reviews.

Props 15

PropTypeDefault
titlestring'Customer reviews'
descriptionstring—
rating*number—
total*number—
distributionReviewsShare[][]
reviewsReviewsEntry[][]
totalLabel((count: number) => string)count === 1 ? '1 review' : `${count} reviews`
starsLabel((stars: number) => string)stars === 1 ? '1 star' : `${stars} stars`
verifiedLabelstring'Verified purchase'
readAllLabel((count: number) => string)`Read all ${count}`
writeLabelstring'Write a review'
ratingShape'star' | 'dot''star'
surface'raised' | 'bare''raised'
localestring—
classClassValue—

Events 2

EventPayload
readAll—
write—

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe reviews-count 1 group

Recipe reviews-stars 1 group

Recipe reviews-verified 1 group

Recipe heading 1 group

Recipe meta 1 group

Recipe line-title 1 group

Recipe hint 1 group

Reviews