Staaarter

Quote With Stats Sidebar

A split two-column layout: a large quote and attribution on one side, and a small sidebar of two or three result stats (label plus a large number) on the other. Frames a customer quote as the headline of a mini case study rather than a standalone testimonial.

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

npx shadcn add https://staaarter.com/r/quote-with-stats-sidebar.json

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

Usage

The file also exports testimonial6Demo, 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 { Testimonial6, testimonial6Demo } from "@/components/blocks/testimonials/testimonial6";

export default function Page() {
  return <Testimonial6 {...testimonial6Demo} />;
}

Props

PropTypeDefaultDescription
quotestringnoneThe pull-quote text.
namestringnoneAttributed person's name.
rolestringnoneAttributed person's role.
companystringundefinedAttributed person's company, appended after the role when set.
statsStatItem[]none2-3 result stats shown in the sidebar, e.g. a metric label and a big value.
classNamestringnoneExtra classes for the outer section element.

Types

type StatItem = {
  label: string;
  value: string;
};

Behavior notes

  • Fully static, server-rendered section with no interactivity.
  • The quote and sidebar sit side by side at the lg breakpoint and stack (quote first, then stats) below it.