Sticky Stats Scroller
A left-aligned header sits above a two-column layout: a panel of headline stats (value + label, in a two-up grid) that stays pinned in place via CSS position: sticky as the page scrolls, next to a column of feature cards (icon, heading, description) that scroll past it normally.
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/sticky-stats-scroller.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature90.tsx instead.
Usage
The file also exports feature90Demo, 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 { Feature90, feature90Demo } from "@/components/blocks/feature/feature90"; export default function Page() { return <Feature90 {...feature90Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | undefined | Supporting paragraph under the heading. |
| stats | StickyStat[] | none | Headline stats rendered in the sticky panel's 2-column grid. |
| features | StickyScrollerFeature[] | none | Feature cards rendered in the scrolling column, in order. |
| className | string | none | Extra classes for the outer section element. |
Types
interface StickyStat { value: string; label: string; } interface StickyScrollerFeature { icon: LucideIcon; title: string; description: string; }
Behavior notes
- Fully static Server Component: no event handlers, no client state. The pinned stats panel is pure CSS (`lg:sticky lg:top-24 lg:self-start`), not JavaScript-driven scroll tracking.
- Below the `lg` breakpoint the stats panel and card column stack vertically and the sticky behavior has no visible effect, since there isn't enough side-by-side height for it to matter.
- No full-bleed background photo here, unlike this batch's other feature84-88 blocks; the section uses the plain `bg-background` page-section convention.
- Each card accepts its own icon component reference directly, which is safe here since this is a Server Component (not "use client").
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.