# Timeline Section

> A marketing section that tells the company story as milestones on a vertical rail, a zigzag around a center line or a horizontal scroller.

- Type: React block (Marketing Sections)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.0.0
- Install: `npx wingo-ui@latest add timeline-section`
- Docs: https://wingo-ui.com/components/timeline-section

## Interaction

Read the milestones in order: each one has a marker on the line (an icon tile or a dot), its year, a title, a short paragraph and an optional stat. The current milestone gets a solid marker with a soft pulse and a Now pill. A milestone with an href turns its whole card into one link (Read the story) that lifts on hover and shows the focus ring around the card when tabbed to. In the vertical layout the big years sit in a column beside the rail and stick while their card scrolls past; the alternating layout zigzags the cards around a center line with the year facing each card, and falls back to the rail on phones. The horizontal layout is a snap scroller: swipe, scroll, focus it and use the arrow keys, or press the round previous and next buttons; the progress line under it fills as you go. Reduced motion stops the pulse and makes the arrow buttons jump instead of glide.

## Installation

```bash
npx wingo-ui@latest add timeline-section
```

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/timeline-section` (needs the @wingo-ui registry with your API key in components.json)

Files:

- `components/blocks/timeline-section.tsx`

npm dependencies: `npm i lucide-react motion`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Badge](https://wingo-ui.com/components/badge) ([Markdown](https://wingo-ui.com/components/badge.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [useScrollEdges](https://wingo-ui.com/components/use-scroll-edges) ([Markdown](https://wingo-ui.com/components/use-scroll-edges.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// app/(marketing)/about/page.tsx
"use client"

import Link from "next/link"
import { Flag, Rocket, Users } from "lucide-react"
import { TimelineSection } from "@/components/blocks/timeline-section"

export default function AboutPage() {
  return (
    <TimelineSection
      linkComponent={Link}
      layout="alternating"
      eyebrow="Our story"
      title="How we got here"
      milestones={[
        { year: "2023", icon: <Flag />, title: "Day one", description: "Three friends, one idea and a borrowed desk." },
        { year: "2024", icon: <Users />, title: "First hires", description: "The team grows to twelve.", stat: { value: "12", label: "people" } },
        { year: "2025", icon: <Rocket />, title: "Launch", description: "Version 1.0 ships to everyone.", href: "/blog/launch", current: true },
      ]}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow?` | `ReactNode` | `"Our story"` | The small line over the title. |
| `title?` | `ReactNode` | `"From a Brooklyn apartment to 100,000 teams"` | The section title. |
| `description?` | `ReactNode` | `"Five years of building the calm workspace where small teams plan, write and ship."` | The paragraph under the title. |
| `actions?` | `ReactNode` |  | Buttons under the heading. |
| `milestones?` | `TimelineSectionMilestone[]` | `"TIMELINE_SECTION_SAMPLE"` | Each milestone: year, title, description, and optionally icon, stat { value, label }, href (the card becomes a link) and current. |
| `layout?` | `"vertical" \| "alternating" \| "horizontal"` | `"vertical"` | vertical: a rail with the cards on one side and big sticky years on the other (years move into the cards on phones); alternating: cards zigzag left and right of a center line from 768px, a rail on phones; horizontal: a snap scroller with a progress line and previous / next buttons. |
| `align?` | `"start" \| "center"` | `"center"` | Where the heading sits. |
| `marker?` | `"icon" \| "dot"` | `"icon"` | The marker on the line: a round tile with the milestone icon, or a small ring. Milestones without an icon get the ring. |
| `card?` | `"raised" \| "flat" \| "none"` | `"raised"` | The surface behind each milestone: a raised card, a flat tint or nothing. |
| `radius?` | `"sm" \| "md" \| "lg"` | `"lg"` | Card corners: 12, 16 or 24px. |
| `showStats?` | `boolean` | `true` | Shows each milestone's stat under a hairline. |
| `pulse?` | `boolean` | `true` | A soft pulse around the current milestone's marker (off under reduced motion). |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | Markers, the small years, stat values and the progress line. |
| `color?` | `string` | `""` | Any CSS color; replaces the tone. Leave empty to use the tone. |
| `background?` | `"none" \| "muted"` | `"none"` | muted sets the section on a gray band. |
| `spacing?` | `"none" \| "sm" \| "md" \| "lg"` | `"md"` | Vertical padding of the section. |
| `width?` | `"sm" \| "md" \| "lg" \| "xl"` | `"lg"` | The content column: 720, 960, 1200 or 1400px. The vertical rail stays at most 880px wide. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` |  | The router link for card links (next/link in an app); default the LinkProvider's. |
| `labels?` | `Partial<TimelineSectionLabels>` |  | learnMore (the link line), now (the pill on the current milestone), list (the list's accessible name), previous and next (the scroller buttons). |
| `className?` | `string` |  | Classes for the <section>. |
| `classNames?` | `Partial<Record<TimelineSectionSlot, string>>` |  | Classes for list, item, rail, marker, connector, year, card, title, description, stat, statValue, statLabel, link, now, progress and controls. |

## Parts

### TIMELINE_SECTION_SAMPLE (constant)

Six Acme milestones from 2021 (founded in New York) to 2026 (100,000 teams), with icons and stats.

### DEFAULT_TIMELINE_SECTION_LABELS (constant)

The English strings.

### TimelineSectionMilestone (type)

One timeline milestone: the year or quarter, a title, description, icon, stat, link and current flag.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `year` | `ReactNode` |  | The marker label, usually a year or a quarter. |
| `title` | `ReactNode` |  | What happened. |
| `description` | `ReactNode` |  | One or two sentences. |
| `icon?` | `ReactNode` |  | A lucide icon for the marker tile. |
| `stat?` | `{ value: ReactNode; label: ReactNode }` |  | One number for that year, shown under a hairline. |
| `href?` | `string` |  | Makes the whole card one link. |
| `current?` | `boolean` |  | Where the company is now: a solid pulsing marker and a Now pill. |

### TimelineSectionProps (type)

Props of TimelineSection.

## Examples

- **Vertical rail**: Big years in a sticky column beside the rail, raised cards with a stat each.
- **Alternating, brand accents**: Cards zigzag around a center line with the year facing each one; a rail again on phones.
- **Horizontal scroller**: A snap rail with a progress line and arrow buttons, flat cards and dot markers.
- **Public roadmap**: Quarters instead of years, no cards, a custom color and the current quarter pulsing.

## See also

- [Timeline](https://wingo-ui.com/components/timeline) ([Markdown](https://wingo-ui.com/components/timeline.md))
- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Stats Section](https://wingo-ui.com/components/stats-section) ([Markdown](https://wingo-ui.com/components/stats-section.md))
- [Team Section](https://wingo-ui.com/components/team-section) ([Markdown](https://wingo-ui.com/components/team-section.md))
- [Steps Section](https://wingo-ui.com/components/steps-section) ([Markdown](https://wingo-ui.com/components/steps-section.md))

---

Canonical: https://wingo-ui.com/components/timeline-section
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
