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.jsonPrefer 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
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small uppercase label above the heading; only rendered when set. |
| heading | ReactNode | none | Centered section heading. |
| description | string | undefined | Centered intro text below the heading. |
| stats | StatItem[] | none | Large-format stat tiles in the grid. |
| className | string | none | Extra 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.
More Health Blocks
View all →Care Programme Cards
Three hairline programme cards pairing a light programme name with a muted duration line, a short explanation, and a checked feature list.
Care Overview Dashboard
Clinical overview with an eyebrow over a hairline rule, a two-column heading, and a bordered dashboard panel with a stat, a retention ring, a status strip, and an outcomes row.
Daily Health Check-in
Two-column layout with feature highlights and a daily summary card showing heart rate, activity, and recovery metrics.
Wellness Editorial Section
Long-form content section with rich text, bullet point highlights, and call-to-action buttons.
Medical Services Grid
Service cards displaying medical specialties with appointment durations, feature lists, and booking CTAs.
Wellness Hero Section
Split-layout hero with large typography, serene imagery, and a floating testimonial card.