Back to blocks
BlockeCommerceFree

Rating Summary Breakdown React component

A ratings summary that explains the score: big average with stars, an all-time / last 90 days switch, clickable 5-to-1 star bars, a would-recommend ring with verified share, a 12-month trend line, attribute scores, a two-ended scale, topic chips with positive and negative counts and matching review snippets.

About the Rating Summary Breakdown component

Rating Summary Breakdown answers the questions behind a star average: how the ratings are spread, whether people would recommend it, if it's getting better or worse, and what specifically they like or complain about.

Clicking a star bar or a topic chip filters the snippets beside them, and the All time / Last 90 days switch redraws everything for recent buyers, which matters when a product has been improved.

When to use it

Put it at the top of the reviews section on a product page, above the full review list, and pass the same filters to that list through onFilter.

It works best from about a few dozen ratings up; with only a handful, a simple average and the reviews themselves are clearer.

Installation

Add the Rating Summary Breakdown component to your project with the shadcn CLI. It lands in components/rating-summary-breakdown.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/rating-summary-breakdown

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Photo Review Gallery
Free
Gift Card Designer
Free
Write a Review Form
Free
Mobile Filter Modal
Free
Sticky Add to Cart Bar
Free
Horizontal Filter Bar
Free