Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/medical-services-grid.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/health/health6.tsx instead.
Usage
The file also exports health6Demo, 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 { Health6, health6Demo } from "@/components/blocks/health/health6"; export default function Page() { return <Health6 {...health6Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | string | undefined | Small label above the heading; only rendered when set. |
| heading | ReactNode | none | Section heading. |
| description | string | undefined | Section intro text below the heading. |
| services | MedicalServiceItem[] | none | One card per medical service. |
| className | string | none | Extra classes for the outer section element. |
Types
type MedicalServiceItem = { title: string; description: string; duration: string; features: string[]; ctaLabel?: string; href?: string; };
Behavior notes
- Each card's icon is picked from a fixed six-icon set by array position (cycling via modulo for a services array longer than six), not passed in as prop data.
- A service's feature list only renders when its features array is non-empty.
- Each card's booking button becomes a real link via Button's render prop only when href is set; otherwise it renders as a plain, inert button, matching the rest of this repo's static CTAs.
- badge and description above the grid only render when set.
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.
Health Statistics Display
Large-format statistics grid showcasing key metrics like member counts, satisfaction rates, and years of service.
Wellness Editorial Section
Long-form content section with rich text, bullet point highlights, and call-to-action buttons.
Wellness Hero Section
Split-layout hero with large typography, serene imagery, and a floating testimonial card.