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.

States: Default

Parts

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

Styling

PartRecipe
Reviewsreviews-stars
Reviewsreviews-count
Reviewsreviews-verified
Reviewsheading
Reviewsmeta
Reviewsline-title
Reviewshint

Install

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

npm packages
@lucide/vue
reka-ui

Built from

API reference

Reviews Reviews.vue

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

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—
EventPayload
readAll—
write—
Data attributeValues
data-surface'raised' | 'bare'
Recipe reviews-starsSets
base: reviews-stars 4 properties · 3 inherited
Recipe reviews-countSets
base: reviews-count 5 properties · 3 inherited
Recipe reviews-verifiedSets
base: reviews-verified 4 properties · 1 inherited
Recipe headingSets
base: heading 1 property
Recipe metaSets
base: meta 3 properties
Recipe line-titleSets
base: line-title 2 properties
Recipe hintSets
base: hint 2 properties
Example