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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | { label: string; variant?: "default" | "secondary" | "outline" } | undefined | Pill above the heading. |
| heading | ReactNode | undefined | Section heading. |
| description | string | undefined | Supporting text below the heading. |
| testimonials | TestimonialItem[] | none | Grid cards, each with a quote, name, role, optional company, and a 1-5 rating. |
| className | string | none | Extra 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.
More Testimonials Blocks
View all →Single Large Quote
One large centered pull-quote with a decorative quote mark and a simple avatar attribution below.
Quote Carousel
Interactive one-at-a-time quote carousel with prev/next arrows and clickable dot indicators.
Video Testimonial Grid
Grid of video-style testimonial cards, each a 16:9 thumbnail with a play-button overlay and a caption.
Masonry Wall
"Wall of love" style masonry layout of many short quote cards using CSS columns, not a JS library.
Quote With Stats Sidebar
Split layout pairing a large quote and attribution with a sidebar of 2-3 result stats.
Logo And Quote Combo
Grid of company-attributed quotes, each paired with a bold text wordmark instead of a real logo image.