- Mar 2024
Registry shipped
50+ shadcn-compatible components served as JSON.
- May 2024
Theme studio
A live two-page canvas with round-trippable preset ids.
- Jul 2024
Remote MCP endpoint
The registry tools with zero local install, no shell.
Installation
npx logic2b@next add timelineUsage
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.
<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>- 09:00
Quality gates passed
Registry, CLI and web checks are green.
- 10:30
Release prepared
Versioned artifacts are ready for review.
API reference
Generated from the public TypeScript exports in src/ui/timeline.tsx.
Timeline
ComponentA 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
ComponentProps: React.ComponentProps<"li">TimelineIndicator
ComponentProps: React.ComponentProps<"div">TimelineContent
ComponentProps: React.ComponentProps<"div">TimelineTime
ComponentProps: React.ComponentProps<"span">TimelineTitle
ComponentProps: React.ComponentProps<"h3">TimelineDescription
ComponentProps: React.ComponentProps<"p">Accessibility contract
Machine-readable behavior and consumer responsibilities for timeline.
- 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.