Skip to content
UI

Search docs

Search components and documentation

New
Menu

Timeline

A vertical timeline for activity feeds, changelogs and process histories.

  1. Mar 2024

    Registry shipped

    50+ shadcn-compatible components served as JSON.

  2. May 2024

    Theme studio

    A live two-page canvas with round-trippable preset ids.

  3. Jul 2024

    Remote MCP endpoint

    The registry tools with zero local install, no shell.

Installation

npx logic2b@latest add timeline

Usage

import {
  Timeline,
  TimelineItem,
  TimelineIndicator,
  TimelineContent,
  TimelineTime,
  TimelineTitle,
  TimelineDescription,
} from "@/components/ui/timeline"

<Timeline>
  <TimelineItem>
    <TimelineIndicator />
    <TimelineContent>
      <TimelineTime>Mar 2024</TimelineTime>
      <TimelineTitle>Registry shipped</TimelineTitle>
      <TimelineDescription>50+ components served as JSON.</TimelineDescription>
    </TimelineContent>
  </TimelineItem>
</Timeline>

The connector line between items is drawn by TimelineIndicator and hidden on the last item automatically. Pass your own node into TimelineIndicator (an icon, a numbered badge) to replace the default dot.

Anatomy

Part Role
Timeline Root <ol> list
TimelineItem A single <li> event row
TimelineIndicator The dot and the connector line to the next item
TimelineContent Wraps the text column
TimelineTime Muted, tabular timestamp
TimelineTitle Event heading
TimelineDescription Supporting copy