bearnie

Timeline

A vertical list of dated events connected by a line — changelogs, roadmaps, order tracking.

  1. Order placed

    We’ve received your order and sent a confirmation email.

  2. Shipped

    Your package left the warehouse.

  3. Out for delivery

    Arriving today between 9:00 and 17:00.

Installation

npx bearnie add timeline
npx bearnie add timeline

Usage

import {
  Timeline,
  TimelineItem,
  TimelineTime,
  TimelineTitle,
  TimelineDescription
} from "@/components/bearnie/timeline"
<Timeline>
  <TimelineItem>
    <TimelineTime datetime="2026-01-15">Jan 15</TimelineTime>
    <TimelineTitle>Something happened</TimelineTitle>
    <TimelineDescription>More detail about it.</TimelineDescription>
  </TimelineItem>
</Timeline>

Pure HTML and CSS — no JavaScript. The connecting line is drawn per item, so it works with any number of entries and stops at the last one.

Examples

Rich content

Items are containers — put anything below the title, like buttons or version badges.

  1. Calendar and Navigation Menu

    A date picker calendar with range selection, and a site navigation bar with hoverable panels.

    Read the changelog →
  2. New components: Marquee, Banner, Rating, Video

    Plus sidebar persistence, sortable tables, and stepper gating.

Anatomy

  • Timeline - The <ol> list container
  • TimelineItem - One event: draws the dot and the connecting line
  • TimelineTime - A <time> element for the date
  • TimelineTitle - The event heading
  • TimelineDescription - Muted supporting text

Props

TimelineItem

Prop Type Default Description
active boolean false Fill the dot with the primary color to mark the current step
class string - Additional CSS classes

TimelineTime

Prop Type Default Description
datetime string - Machine-readable date for the <time> element