Staaarter

Timeline & Milestones

Two-column layout with company stats on the left and a vertical timeline of milestones on the right. Ideal for company history and growth stories.

By Staaarter Team
About
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/timeline-milestones.json

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

Usage

The file also exports about3Demo, 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 { About3, about3Demo } from "@/components/blocks/about/about3";

export default function Page() {
  return <About3 {...about3Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneSection heading.
descriptionstringundefinedSection intro text.
statsStatItem[][]Stat tiles below the heading.
milestonesMilestone[]noneTimeline entries, rendered in the order passed in.
classNamestringnoneExtra classes for the outer section element.

Types

type StatItem = { title: string; value: string };

type Milestone = {
  year: string;
  title: string;
  description: string;
};

Behavior notes

  • milestones renders in whatever order the array is passed in; the component does not sort by year, so callers are responsible for chronological ordering.
  • The timeline uses a left border plus an absolutely positioned dot per entry rather than an ordered-list marker, so it reads the same regardless of list-style resets elsewhere on the page.
  • stats is optional; omitting it (or passing an empty array) removes the stat grid without leaving a gap above the timeline.