Staaarter

Sticky Benefits Timeline

A two-column benefits section: the heading and supporting copy stay pinned in the left column while a connected, dot-marked timeline of benefit items runs down the right column as the page scrolls.

By Staaarter Team
Feature
Docs
Live preview

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-benefits-timeline.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature91.tsx instead.

Usage

The file also exports feature91Demo, 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 { Feature91, feature91Demo } from "@/components/blocks/feature/feature91";

export default function Page() {
  return <Feature91 {...feature91Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneSection heading, pinned in the sticky column.
descriptionstringnoneSupporting copy under the heading.
benefitsBenefitItem[]noneTimeline entries rendered in the scrolling right column.
classNamestringnoneExtra classes for the outer section element.

Types

type BenefitItem = {
  title: string;
  description: string;
};

Behavior notes

  • Fully static server component, no client-side state.
  • The left column uses CSS `lg:sticky lg:top-24` so it stays in view while the timeline scrolls past it on large screens; both columns stack on mobile.
  • The timeline is a plain `<ol>` with a border-left rule and an absolutely positioned dot per item, no scroll-linked animation.