Staaarter

Health Statistics Display

Large-format statistics grid showcasing key metrics like member counts, satisfaction rates, and years of service. Perfect for healthcare organizations and wellness brands.

By Staaarter Team
Health
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/health-statistics-display.json

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

Usage

The file also exports health4Demo, 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 { Health4, health4Demo } from "@/components/blocks/health/health4";

export default function Page() {
  return <Health4 {...health4Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall uppercase label above the heading; only rendered when set.
headingReactNodenoneCentered section heading.
descriptionstringundefinedCentered intro text below the heading.
statsStatItem[]noneLarge-format stat tiles in the grid.
classNamestringnoneExtra classes for the outer section element.

Types

type StatItem = {
  icon?: LucideIcon;
  value: string;
  label: string;
  description?: string;
};

Behavior notes

  • stats renders in a fixed 4-column grid at the lg breakpoint (2-column at sm) regardless of item count; there is no alternate layout for fewer or more than four items.
  • Every stat's icon is optional; the icon badge above the number is simply skipped for a stat with no icon, rather than leaving reserved empty space.
  • value is a pre-formatted string (e.g. "42,000+") rather than a number, so digit grouping and suffixes like "+" are entirely the caller's choice and can't drift between server and client rendering.