Velocity X Components

E-Commerce

Review Summary with Rating Breakdown

Average rating, star row and review count beside a 5-to-1 star horizontal bar breakdown with counts.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add review-summary

Built for astro.

Full docs for Review Summary with Rating Breakdown →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.0
Review Summary with Rating Breakdown
4.6 128 reviews
5 star
90
4 star
24
3 star
8
2 star
4
1 star
2

Props

NameTypeRequiredDefaultDescription
averagenumberYes
reviewCountnumberYes
breakdownRecord<1 | 2 | 3 | 4 | 5, number>Yes
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/review-summary/ReviewSummary.astro

Using the Review Summary with Rating Breakdown component

Install it with velocityx add review-summary. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from E-Commerce.