Components

Timeline

A scroll-animated vertical timeline for React and Tailwind CSS, perfect for changelogs, roadmaps and company history. A progress line traces down the rail as you scroll, each dot lights up as the line reaches it, entries fade and slide in, and on wide layouts the dates stick beside their entry. Works on the page or inside any scroll container.

  • Scroll-linked progress
  • Sticky dates
  • Scroll containers
  • Container queries
  • SEO-friendly
  • prefers-reduced-motion

Changelog

  1. v3.0 · Component library 3.0

    A flat component list, 20 new showcase components and a rebuilt docs site with live previews.

    • Major
    • Docs
  2. v2.6 · Scroll-linked everything

    Scroll Reveal Text, Blur Panel and a new container prop so effects work inside any scroll area.

    • Feature
  3. v2.4 · Reduced motion audit

    Every component now checks prefers-reduced-motion and falls back to a calm, static state.

    • Accessibility
  4. v2.0 · Motion 12 and React 19

    Moved to the motion package, layout animations everywhere and no more hydration warnings.

    • Major
  5. v1.0 · First public release

    Buttons, cards and text effects built on shadcn/ui, with a neon mint dark theme.

    • Launch

Installation

$ npx shadcn@latest add https://duskui.com/r/timeline.json

Usage

changelog.tsx
import { Timeline, TimelineItem } from "@/components/dusk/timeline/timeline"

export function Changelog() {
  return (
    <Timeline>
      <TimelineItem date="Nov 2026" dateTime="2026-11" title="v3.0 · Component library 3.0">
        A flat component list and 20 new components.
      </TimelineItem>
      <TimelineItem date="Sep 2026" dateTime="2026-09" title="v2.6 · Scroll-linked everything">
        New container prop for scroll areas.
      </TimelineItem>
    </Timeline>
  )
}

Examples

Roadmap with icons

Pass an icon for each dot (lineClassName restyles the line if you need to). anchor moves the line's tip (here 70% down the scroll area). In a narrow container the dates stack above each title; the layout switches with container queries, not the viewport.

  1. Discovery

    Interview ten customers and map the jobs they hire the product for.
  2. Design

    Wireframes, a clickable prototype and a round of hallway tests.
  3. Build & test

    Ship behind a flag to 5% of users and watch the metrics.
  4. Launch

    Flip the flag, publish the changelog and post it in the changelog.
  5. Review

    Measure against the goals we set in week one and decide what's next.

API Reference

Timeline renders an ol and accepts its attributes; TimelineItem renders an li.

PropTypeDefaultDescription
containerRefObject<HTMLElement | null>—Timeline: the scrolling element, when it lives in a scroll container.
anchornumber0.5Timeline: where the line's tip sits, as a fraction of the viewport / container height. Dots light up as they cross it.
stickyTopstring"5rem"Timeline: CSS length from the top where dates stick on wide layouts. Match your sticky header.
lineClassNamestring—Timeline: classes for the progress line.
dateReactNode—TimelineItem: date label, rendered in a <time>.
dateTimestring—TimelineItem: machine-readable date for the <time> element.
titleReactNode—TimelineItem: entry heading.
titleAs"h2" | "h3" | "h4""h3"TimelineItem: heading element.
iconReactNode—TimelineItem: icon inside the rail dot. Defaults to a small dot.
childrenReactNode—TimelineItem: entry body.

Accessibility

  • It is an ordered list of entries, each with a heading and a <time> element (use dateTime for a machine-readable date), so it reads well in screen readers and search results.
  • Each date is rendered once; the wide and narrow layouts only move it with CSS grid.
  • The server, no-JS visitors and the first paint show every entry. Only entries still below the fold are hidden before the first paint and then fade in.
  • The rail and dots are aria-hidden decoration. The progress line is a scaleY transform driven by scroll Motion values, so scrolling never re-renders React.
  • With prefers-reduced-motion the line is drawn in full and entries are simply visible; dots still change color as you scroll.