Skip to content
Logic2BUI

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@next 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

Live playground

Edit the component props and inspect the exact JSX before copying it. The preview loads only when this section enters the viewport.

Generated JSX
<Timeline
  className="w-full max-w-md"
  aria-label="Release timeline"
>
  <TimelineItem>
    <TimelineIndicator />
    <TimelineContent>
      <TimelineTime>09:00</TimelineTime>
      <TimelineTitle>Quality gates passed</TimelineTitle>
      <TimelineDescription>Registry, CLI and web checks are green.</TimelineDescription>
    </TimelineContent>
  </TimelineItem>
  <TimelineItem>
    <TimelineIndicator />
    <TimelineContent>
      <TimelineTime>10:30</TimelineTime>
      <TimelineTitle>Release prepared</TimelineTitle>
      <TimelineDescription>Versioned artifacts are ready for review.</TimelineDescription>
    </TimelineContent>
  </TimelineItem>
</Timeline>

API reference

Generated from the public TypeScript exports in src/ui/timeline.tsx.

View JSON

Timeline

Component

A vertical timeline for activity feeds, changelogs and process histories. Composable: each `TimelineItem` holds a `TimelineIndicator` (the dot + the connector line to the next item) and a `TimelineContent`. The connector is hidden on the last item automatically.

Props: React.ComponentProps<"ol">

TimelineItem

Component
Props: React.ComponentProps<"li">

TimelineIndicator

Component
Props: React.ComponentProps<"div">

TimelineContent

Component
Props: React.ComponentProps<"div">

TimelineTime

Component
Props: React.ComponentProps<"span">

TimelineTitle

Component
Props: React.ComponentProps<"h3">

TimelineDescription

Component
Props: React.ComponentProps<"p">

Accessibility contract

Machine-readable behavior and consumer responsibilities for timeline.

View JSON
Support
Composition contract
Pattern
chronological list
HTML div

Built-in semantics

  • Does not impose list semantics, allowing each entry to retain its native content structure.

Consumer responsibilities

  • Compose the root and entries as an ordered list when order is meaningful, and expose dates as machine-readable time elements.