Stats Bar with Story Card
Horizontal stats row at the top followed by a centered story card with heading, body text, and CTAs.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/stats-bar-with-story-card.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about14.tsx instead.
Usage
The file also exports about14Demo, 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 { About14, about14Demo } from "@/components/blocks/about/about14"; export default function Page() { return <About14 {...about14Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| stats | StatItem[] | none | Stat row across the top, each centered above a bottom border. |
| heading | string | none | Heading inside the story card. |
| story | string | none | Body paragraph inside the story card. |
| buttons | ButtonItem[] | [] | CTA buttons at the bottom of the story card. |
| className | string | none | Extra classes for the outer section element. |
Types
type StatItem = { title: string; value: string }; type ButtonItem = { label: string; href?: string; variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive"; };
Behavior notes
- The stats row sits above a border-bottom rule that separates it from the story card below; unlike About8, stats here are always centered rather than left-aligned.
- The story card itself is capped at a narrow max width and centered, distinct from the full-width stat row above it, creating an intentional funnel from wide data to a focused message.
- Every button defaults to variant "default" (the same convention as About1), unlike About5 which alternates default and outline.
More About Blocks
View all →team-mission
Team & Mission
Two-column about section with mission statement, company stats, and team member grid.
values-with-team-photo
Values with Team Photo
Full-width photo with a three-column values grid below.
timeline-milestones
Timeline & Milestones
Company stats on the left and a vertical timeline of milestones on the right.
founder-quote-team
Founder Quote & Team
Founder blockquote with avatar, followed by a horizontal team member row.
image-text-split
Image & Text Split
Tall image on the left, company story, inline stats, and CTAs on the right.
numbered-principles
Numbered Principles
Heading on the left and numbered company principles on the right.