Staaarter

Three Column Grid

A responsive grid of testimonial cards (one column on mobile, three on desktop), each showing a star rating row, the quote text, and an avatar/name/role attribution. A solid general-purpose testimonials section for a marketing page.

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 badge, avatar, avatar-initials dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/three-column-grid.json

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

Usage

The file also exports testimonial2Demo, 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 { Testimonial2, testimonial2Demo } from "@/components/blocks/testimonials/testimonial2";

export default function Page() {
  return <Testimonial2 {...testimonial2Demo} />;
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }undefinedPill above the heading.
headingReactNodeundefinedSection heading.
descriptionstringundefinedSupporting text below the heading.
testimonialsTestimonialItem[]noneGrid cards, each with a quote, name, role, optional company, and a 1-5 rating.
classNamestringnoneExtra classes for the outer section element.

Types

type TestimonialItem = {
  quote: string;
  name: string;
  role: string;
  company?: string;
  rating: number; // 1-5
};

Behavior notes

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