Docs
Timeline
Timeline
Timeline displays a list of events in chronological order.
Eat
Because you need strength
Code
Because it's awesome!
Sleep
Because you need rest
Repeat
Because this is the life you love!
Installation
npx shadcn@latest add https://ui-x.junwen-k.dev/r/timeline.json
Usage
import {
Timeline,
TimelineConnector,
TimelineContent,
TimelineDescription,
TimelineDot,
TimelineItem,
TimelineSeparator,
TimelineTitle,
} from "@/components/ui/timeline"
<Timeline>
<TimelineItem>
<TimelineSeparator>
<TimelineDot />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<TimelineTitle>Eat</TimelineTitle>
<TimelineDescription>Because you need strength</TimelineDescription>
</TimelineContent>
</TimelineItem>
<TimelineItem>
<TimelineSeparator>
<TimelineDot />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<TimelineTitle>Code</TimelineTitle>
<TimelineDescription>Because it's awesome!</TimelineDescription>
</TimelineContent>
</TimelineItem>
<TimelineItem>
<TimelineSeparator>
<TimelineDot />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<TimelineTitle>Sleep</TimelineTitle>
<TimelineDescription>Because you need rest</TimelineDescription>
</TimelineContent>
</TimelineItem>
<TimelineItem>
<TimelineSeparator>
<TimelineDot />
</TimelineSeparator>
<TimelineContent>
<TimelineTitle>Repeat</TimelineTitle>
<TimelineDescription>
Because this is the life you love!
</TimelineDescription>
</TimelineContent>
</TimelineItem>
</Timeline>
Examples
Default
Eat
Because you need strength
Code
Because it's awesome!
Sleep
Because you need rest
Repeat
Because this is the life you love!
Alternate
Eat
Because you need strength
Code
Because it's awesome!
Sleep
Because you need rest
Repeat
Because this is the life you love!
With Icon
Eat
Because you need strength
Code
Because it's awesome!
Sleep
Because you need rest
Repeat
Because this is the life you love!
Horizontal
Ordered
9.15 AM, January 1, 2024
Shipped
12:20 PM, January 4, 2024
Out for Delivery
07:00 AM, January 8, 2024