Timeline Section React block for Tailwind CSS v4
v1.0.0Added in 1.7.0
A marketing section that tells the company story as milestones on a vertical rail, a zigzag around a center line or a horizontal scroller.
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.
Timeline Section is a Pro React block in the React marketing sections category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add timeline-section, together with Marketing Section, Badge, Button, useScrollEdges, Motion presets and 3 more and the npm packages lucide-react and motion.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add timeline-sectionTimeline Section is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import TimelineSection from @/components/blocks/timeline-section.
// 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
eyebrowdefault"Our story"ReactNodeThe small line over the title.
titledefault"From a Brooklyn apartment to 100,000 teams"ReactNodeThe section title.
descriptiondefault"Five years of building the calm workspace where small teams plan, write and ship."ReactNodeThe paragraph under the title.
actionsReactNodeButtons under the heading.
milestonesdefault"TIMELINE_SECTION_SAMPLE"TimelineSectionMilestone[]Each milestone: year, title, description, and optionally icon, stat { value, label }, href (the card becomes a link) and current.
layoutdefault"vertical""vertical" | "alternating" | "horizontal"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.
aligndefault"center""start" | "center"Where the heading sits.
markerdefault"icon""icon" | "dot"The marker on the line: a round tile with the milestone icon, or a small ring. Milestones without an icon get the ring.
carddefault"raised""raised" | "flat" | "none"The surface behind each milestone: a raised card, a flat tint or nothing.
radiusdefault"lg""sm" | "md" | "lg"Card corners: 12, 16 or 24px.
showStatsdefaulttruebooleanShows each milestone's stat under a hairline.
pulsedefaulttruebooleanA soft pulse around the current milestone's marker (off under reduced motion).
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"Markers, the small years, stat values and the progress line.
colordefault""stringAny CSS color; replaces the tone. Leave empty to use the tone.
backgrounddefault"none""none" | "muted"muted sets the section on a gray band.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding of the section.
widthdefault"lg""sm" | "md" | "lg" | "xl"The content column: 720, 960, 1200 or 1400px. The vertical rail stays at most 880px wide.
linkComponent(props: LinkComponentProps) => ReactNodeThe router link for card links (next/link in an app); default the LinkProvider's.
labelsPartial<TimelineSectionLabels>learnMore (the link line), now (the pill on the current milestone), list (the list's accessible name), previous and next (the scroller buttons).
classNamestringClasses for the <section>.
classNamesPartial<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
constantSix Acme milestones from 2021 (founded in New York) to 2026 (100,000 teams), with icons and stats.
DEFAULT_TIMELINE_SECTION_LABELS
constantThe English strings.
TimelineSectionMilestone
typeOne timeline milestone: the year or quarter, a title, description, icon, stat, link and current flag.
year*ReactNodeThe marker label, usually a year or a quarter.
title*ReactNodeWhat happened.
description*ReactNodeOne or two sentences.
iconReactNodeA lucide icon for the marker tile.
stat{ value: ReactNode; label: ReactNode }One number for that year, shown under a hairline.
hrefstringMakes the whole card one link.
currentbooleanWhere the company is now: a solid pulsing marker and a Now pill.
TimelineSectionProps
typeProps 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.
Dependencies
Files
- components/blocks/timeline-section.tsx
FAQ
Is the React Timeline Section block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Timeline Section?
Run npx wingo-ui@latest add timeline-section. It also adds the Wingo UI items it builds on (Marketing Section, Badge, Button, useScrollEdges, Motion presets and 3 more) and the npm packages lucide-react and motion. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/timeline-section.
How does Timeline Section behave on phones?
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.
See also
Used in
More React marketing sections
Articles using this component
- Nextjs Portfolio Template That Wins Clients
Build it: screens and apps9 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.