Introducing PrimeReact v11-alpha 🎉Discover Now

Timeline

Timeline visualizes a series of chained events.

Ordered
Processing
Shipped
Delivered
preview

Installation#

npx shadcn@latest add @primereact/timeline

Usage#

import { Timeline, TimelineConnector, TimelineContent, TimelineEvent, TimelineMarker, TimelineOpposite, TimelineSeparator } from '@/components/ui/timeline';
<Timeline>
    <TimelineEvent>
        <TimelineOpposite />
        <TimelineSeparator>
            <TimelineMarker />
            <TimelineConnector />
        </TimelineSeparator>
        <TimelineContent />
    </TimelineEvent>
</Timeline>

Examples#

Basic#

Displays a sequence of events along a vertical or horizontal axis.

Ordered
Processing
Shipped
Delivered
basic-demo

Alignment#

Content location relative to the line is defined with the align property.

Ordered
Processing
Shipped
Delivered
Ordered
Processing
Shipped
Delivered
Ordered
Processing
Shipped
Delivered
alignment-demo

Opposite#

Additional content at the other side of the line can be provided with the opposite property.

15/10/2026 10:30
Ordered
15/10/2026 14:00
Processing
15/10/2026 16:15
Shipped
16/10/2026 10:00
Delivered
opposite-demo

Horizontal#

Timeline orientation is controlled with the orientation property, default is vertical having horizontal as the alternative.

2026
2027
2028
2029
2026
2027
2028
2029
 
2026
 
2027
 
2028
 
2029
horizontal-demo

Custom#

Sample implementation with custom content, styled markers, and rich event cards.

Oct 15, 2026
10:30 AM
JD
Order Placed

Your order #12345 has been confirmed and is being prepared for processing.

  • 2x Wireless Headphones
  • 1x Phone Case
  • 1x USB-C Cable
Oct 15, 2026
10:32 AM
SY
Payment Confirmed

Payment of $149.99 was successfully processed via Credit Card ending in 4242.

Oct 16, 2026
02:15 PM
MK
Shipped

Package has been handed to the carrier and is on its way.

Tracking: TRK-892374651
Oct 18, 2026
11:20 AM
JD
Delivered

Package was delivered and signed for at the front door.

custom-demo

Interactive#

Build interactive step-based workflows with progress tracking and state management.

Onboarding Progress

1 of 5 steps completed

Account Created
Email Verified
Click the marker to complete
Profile Completed
First Purchase
Review Posted
interactive-demo

Activity Feed#

Display real-time activity streams with user avatars and contextual information.

Recent Activity

2 minutes ago
SC
Sarah Chenpushed3 commitstomain
  • fix: resolve memory leak in useEffect
  • feat: add dark mode toggle
  • chore: update dependencies
15 minutes ago
AK
Alex Kumaropenedpull request #142tofeature/auth

Implement OAuth2 authentication flow

1 hour ago
MJ
Maya Johnsoncommented onissue #89

I've investigated this bug and found the root cause. Working on a fix now.

3 hours ago
DP
David Parkmergedpull request #138tomain
5 hours ago
EW
Emma Wilsoncreatedrelease v2.4.0

Performance improvements and bug fixes

activity-demo