Animated Stats & Value Cards
Side-by-side intro with number stat cards and accent bars, plus a row of hover-lift value cards. Built for impact-driven companies.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/animated-stats-value-cards.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about25.tsx instead.
Usage
The file also exports about25Demo, 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 { About25, about25Demo } from "@/components/blocks/about/about25"; export default function Page() { return <About25 {...about25Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| badge | { label: string; variant?: BadgeVariant } | none | Optional pill above the heading. |
| heading | string | none | Section heading. |
| description | string | undefined | Intro paragraph under the heading. |
| stats | StatItem[] | none | Stat cards beside the intro, each with a static accent bar sized by percent. |
| values | ValueCard[] | none | Value cards below, each with an icon and a hover-lift effect. |
| className | string | none | Extra classes for the outer section element. |
Types
type StatItem = { title: string; value: string; percent?: number }; type ValueCard = { icon: LucideIcon; title: string; description: string; };
Behavior notes
- The 'animated' accent bar under each stat is a static bar whose width is set from the stat's percent field (defaulting to 100); this is a server component with no scroll-triggered count-up, unlike what the name might suggest.
- The hover-lift on value cards is a plain CSS hover:-translate-y-1 transition, not a JS/Framer effect, keeping this a server component like every other About block; About16's pillar cards have no hover treatment at all.
- Unlike About8, which puts stats in a single full-width 4-column row, stats here sit in a 2-column grid beside the intro text, with the value-card row as a fully separate section below.
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.