Staaarter

About Stats Grid

An eyebrow label and a two-tone heading (a muted lead-in span plus a foreground emphasis span) sit above two offset portrait images beside a 2x2 grid of bordered stat cards.

By Staaarter Team
About
Docs
Live preview

Docs

Installation

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

npx shadcn add https://staaarter.com/r/about-stats-grid.json

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

Usage

The file also exports about34Demo, 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 { About34, about34Demo } from "@/components/blocks/about/about34";

export default function Page() {
  return <About34 {...about34Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall uppercase label above the heading.
headingLeadstringnoneFirst span of the heading, rendered in text-muted-foreground.
headingEmphasisstringnoneSecond span of the heading, rendered in text-foreground.
imageOneMediaSlotImageundefinedLeft portrait image.
imageTwoMediaSlotImageundefinedRight portrait image, offset downward from the first.
statsStatItem[]noneStat cards on the right, laid out as a 2x2 grid of bordered tiles.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • The heading is split across two props instead of one string, unlike every other About block's single heading field, so callers control exactly where the muted-to-foreground color change lands mid-sentence.
  • imageTwo carries a fixed top offset (mt-8) so the pair reads as an intentionally staggered portrait pairing, unlike About32's two images, which stay aligned on the same baseline regardless of ratio.
  • stats render as four individually bordered 2x2 tiles next to the images, unlike About1's stat grid, which sits in a plain unbordered dl beside a mission paragraph rather than beside photos.