Staaarter

Rating Stars Grid

Dense grid (four columns on desktop) of compact cards, each showing just a star rating and a short one-sentence quote, no avatars or names. Deliberately minimal, built for a "hundreds of five-star reviews" feel rather than featuring any individual reviewer.

By Staaarter Team
Testimonials
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/rating-stars-grid.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/testimonials/testimonial12.tsx instead.

Usage

The file also exports testimonial12Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Testimonial12, testimonial12Demo } from "@/components/blocks/testimonials/testimonial12";

export default function Page() {
  return <Testimonial12 {...testimonial12Demo} />;
}

Props

PropTypeDefaultDescription
headingReactNodeundefinedSection heading.
descriptionstringundefinedSupporting text below the heading.
reviewsReviewItem[]noneGrid items, each with a 1-5 star rating and a short quote.
classNamestringnoneExtra classes for the outer section element.

Types

type ReviewItem = {
  rating: number; // 1-5
  quote: string;
};

Behavior notes

  • Fully static, server-rendered section with no interactivity.
  • Star rating is rendered as five Star icons per card, filled up to the review's rating value; this is a static visual, not an interactive input.