Reviews Summary
A reviews block with a large average and a five-bar breakdown, plus a sortable list with verified marks and helpful votes.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/reviews-summary.jsonDependencies:
lucide-reactCustomer reviews
4.438 verified reviews
- 5 star2
- 4 star1
- 3 star1
- 2 star0
- 1 star0
4 reviews
Worth the wait
The finish is even better in person. It took two people ten minutes to assemble.
Sara, Rabat2026-10-02Finish: Walnut Verified purchaseSolid and comfortable
Very sturdy. I would like a slightly firmer seat, but my guests love it.
Karim, Casablanca2026-09-14 Verified purchaseArrived on the day promised and the packaging was excellent.
Imane, Marrakech2026-08-21Good, but slow delivery
The chair is lovely. Delivery took a week longer than quoted.
Youssef, Tangier2026-07-30 Verified purchase
Usage
reviews-summary-example.tsx
import { ReviewsSummary } from "@dbs/ui";
const REVIEWS = [
{ id: "1", author: "Sara", location: "Rabat", date: "2026-10-02", rating: 5, title: "Worth the wait", body: "The finish is even better in person. It took two people ten minutes to assemble.", verified: true, helpful: 12, meta: "Finish: Walnut" },
{ id: "2", author: "Karim", location: "Casablanca", date: "2026-09-14", rating: 4, title: "Solid and comfortable", body: "Very sturdy. I would like a slightly firmer seat, but my guests love it.", verified: true, helpful: 4 },
{ id: "3", author: "Imane", location: "Marrakech", date: "2026-08-21", rating: 5, body: "Arrived on the day promised and the packaging was excellent.", verified: false, helpful: 1 },
{ id: "4", author: "Youssef", location: "Tangier", date: "2026-07-30", rating: 3, title: "Good, but slow delivery", body: "The chair is lovely. Delivery took a week longer than quoted.", verified: true, helpful: 7 },
];
export default function ReviewsSummaryExample() {
return (
<div className="w-full max-w-4xl">
<ReviewsSummary reviews={REVIEWS} count={38} rating={4.4} />
</div>
);
}