Skip to content
New

Reviews, rating

beta

The average rating written large with its stars, the count and where reviews were left, beside a masonry of starred reviews.

npx rasengan-ui add reviews-rating

What our guests say

4.8out of 5

326 reviews on Google

Read all reviews
  • 5 out of 5
    The best ndolé in Akwa, and I have tried them all. Generous plates, and the folere is made on the spot.
    Aïcha N. · 18 Oct 2026 · Google
  • 5 out of 5
    We ordered for a family lunch of twenty people. Everything arrived hot and on time.
    Paul from Bonapriso · 2 Oct 2026 · Google
  • 4 out of 5
    Lovely terrace in the evening. Busy on Fridays, so book ahead.
    Mireille K. · 27 Sept 2026 · Google
  • 5 out of 5
    Came for work, came back three times in a week. The fish is grilled exactly right.
    Thomas B. · 12 Sept 2026 · In the shop
  • 5 out of 5
    They made my mother's birthday cake a surprise, candles and all. Thank you to the whole team.
    Esther M. · 30 Aug 2026 · Google
  • 4 out of 5
    Good food, fair prices. The plantain could be riper, but I will be back.
    Didier T. · 14 Aug 2026 · Google
Use it
A business with a good public rating and real reviews to quote: restaurants, salons, garages.
Avoid it
A handful of long testimonials with photos: testimonials-carousel. No real rating to show.
Built with
Button

Installation

Terminal
npx rasengan-ui add reviews-rating

It installs into components/blocks/reviews-rating/, with what it uses (Button) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { ReviewsRating } from "@/components/blocks/reviews-rating";
import { home } from "@/content/home";
 
export default function Home() {
  return <ReviewsRating content={home.reviews} />;
}
content/home.ts
import { example, type ReviewsRatingContent } from "@/components/blocks/reviews-rating";
 
export const home = {
  reviews: { ...example, title: "Reviews" } satisfies ReviewsRatingContent,
};

The summary and the reviews are content you copy in: nothing is fetched. Quote real reviews, shortened if needed, never rewritten, and give the real average and count. source is a label ("Google"); no third-party logo is shown.

Content

FieldTypeLimitsGuidance
titlestring2–48 chars'What our guests say', 'Reviews'.
summaryobjectThe average and how many reviews it is over, from where they were left. Real numbers only.
summary.scorenumber0–5The average out of 5, e.g. 4.8.
summary.countinteger≥ 0How many reviews the average is over.
summary.sourceoptionalstring≤ 24 charsWhere the reviews were left, as a label: 'Google'.
summary.hrefoptionalstringA link to read them all or to leave one.
reviewsobject[]3–9 itemsReal reviews, in the customers' words; shorten them, never rewrite them.
reviews[].authorstring1–48 charsAs the customer signs: 'Aïcha N.', 'Paul from Bonapriso'.
reviews[].ratinginteger1–5
reviews[].textstring12–400 charsIn the customer's words.
reviews[].dateoptionalstringdate'YYYY-MM-DD', shown in the project's locale.
reviews[].sourceoptionalstring≤ 24 charsWhere it was left, as a label: 'Google', 'In the shop'. Never a logo.
localeoptionalstringA BCP 47 locale for the score and dates ('en-CM'); the page's language when left out.
labelsobjectThe words around the numbers.
labels.outOfstring1–16 charsAfter a score: 'out of 5'.
labels.reviewsstring1–16 charsAfter the count: 'reviews'.
labels.onoptionalstring≤ 8 chars, default "on"Before the source: '320 reviews on Google'.
labels.readAlloptionalstring≤ 32 charsThe link to all of them: 'Read all reviews'.

Props

PropNotes
contentReviewsRatingContent; the example when left out
idthe section's id, for anchor links; "reviews" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the <section>, for spacing

Accessibility

  • Every score is written out ("4.8 out of 5"); the stars are decoration.
  • Reviews are figures with a blockquote and a caption naming the author.