Staaarter

Stats with Descriptions

Four-column stats grid with large numbers, titles, and supporting descriptions. Perfect for impact and results sections.

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

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

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

Usage

The file also exports about8Demo, 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 { About8, about8Demo } from "@/components/blocks/about/about8";

export default function Page() {
  return <About8 {...about8Demo} />;
}

Props

PropTypeDefaultDescription
headingstringundefinedOptional heading above the stats grid.
statsStatItem[]noneStat tiles, each with a value, title, and short description.
classNamestringnoneExtra classes for the outer section element.

Types

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

Behavior notes

  • heading is entirely optional; when omitted the stats grid renders with no top margin instead of leaving a blank heading area.
  • Each stat tile is separated from its neighbors by a top border rather than a card outline, giving a lighter, editorial look for a section meant to hold four short items.
  • The grid is sm:grid-cols-2 lg:grid-cols-4, so on tablet widths stats appear two-by-two before expanding to a single row on desktop.