React Timeline
An animated React timeline for activity feeds, audit logs, order tracking and changelogs that draws itself as you scroll. Use it as an activity feed or audit log with avatars, action badges and a Today group heading, where new events should slide in at the top and push the rest down smoothly.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/timeline.jsonOrder placed
Oct 27, 09:12
TimelineTimelineItemTimelineHeading- +1 more
Activity feed
Avatars with action badges, rich titles, a comment, group headings and a plain dot for minor events. Press “Simulate activity”: the new event slides in at the top and the rest make room.
Activity
- Today
Ada merged #482 into main
Grace commented on #482
Lovely. The glass fallback for reduced transparency reads much better now. Ship it!Production deploy finished
v2.14.0 · 48 s · 0 errorsLinus viewed the release notes
- Yesterday
Build #1288 failed
2 tests failed in breadcrumb.test.tsxAda opened #482 Collapse breadcrumbs
import { Avatar } from "@/components/sheenui/avatar/avatar";
import { Timeline, TimelineHeading, TimelineItem } from "@/components/sheenui/timeline/timeline";
// Package build (after the first npm release, or a packed tarball): import { Avatar, Timeline, TimelineHeading, TimelineItem } from "@sheenui/theme";
import { GitMerge as MergeIcon, MessageSquare as CommentIcon, Rocket as RocketIcon } from "lucide-react";
// This example also uses avatar: npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/avatar.json
export function Example() {
return (
<Timeline aria-label="Activity">
<TimelineHeading>Today</TimelineHeading>
<TimelineItem
avatar={<Avatar name="Ada Lovelace" size="sm" />}
icon={<MergeIcon />} // a badge on the avatar
tone="accent"
title={<><b>Ada</b> merged <a href={"/pr/482"}>#482</a> into main</>}
time="12 min ago"
dateTime="2026-10-30T10:48"
/>
<TimelineItem
avatar={<Avatar name="Grace Hopper" size="sm" />}
icon={<CommentIcon />}
title={<><b>Grace</b> commented on #482</>}
time="40 min ago"
>
<div className="glass-1 rounded-sheen-md px-3.5 py-2.5 text-sm">Lovely. Ship it!</div>
</TimelineItem>
<TimelineItem icon={<RocketIcon />} tone="success" title="Production deploy finished" description="v2.14.0 · 48 s" time="1 h ago" />
{/* No icon: a dot */}
<TimelineItem title="Linus viewed the release notes" time="2 h ago" />
<TimelineHeading>Yesterday</TimelineHeading>
<TimelineItem title="Release 2.13.0 published" time="Yesterday" />
</Timeline>
);
}Files to copy
5 folders · 6 files · 4 packages
- From
theme/src/ components/timeline/hooks/{use-media-query.ts, use-preferences.ts}motion/{gate.ts, tokens.ts}lib/{cn.ts, no-script-reveal.tsx}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/timeline.jsonRegistry item: timeline. The styles need the Tailwind v4 glass UI setup.- The examples also use
components/avatar/components/badge/lib/{initials.ts, warn-once.ts}
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/avatar.json https://lokendra-builds.github.io/sheenui/r/badge.json- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Order tracking
connector="accent" for the path already travelled, current for the live step (a soft pulse and aria-current), dashed for what has not happened yet.
Order placed
Packed
Shipped
Parcel SH-48213Out for delivery
Arriving by 6 pmDelivered
Expected today
import { Timeline, TimelineItem } from "@/components/sheenui/timeline/timeline";
// Package build (after the first npm release, or a packed tarball): import { Timeline, TimelineItem } from "@sheenui/theme";
import { Package as BoxIcon, Check as CheckIcon, House as HomeIcon, Map as MapIcon, Truck as TruckIcon } from "lucide-react";
export function Example() {
return (
<Timeline aria-label="Order status" size="sm">
<TimelineItem icon={<CheckIcon />} tone="success" connector="accent" title="Order placed" time="Oct 27, 09:12" />
<TimelineItem icon={<BoxIcon />} tone="success" connector="accent" title="Packed" time="Oct 27, 15:40" />
<TimelineItem icon={<TruckIcon />} tone="success" connector="accent" title="Shipped" description="Parcel SH-48213" time="Oct 28, 08:05" />
<TimelineItem icon={<MapIcon />} tone="accent" current connector="dashed" title="Out for delivery" description="Arriving by 6 pm" time="Today, 07:30" />
<TimelineItem icon={<HomeIcon />} title="Delivered" description="Expected today" />
</Timeline>
);
}Alternate (changelog)
Wide containers zig-zag around a centered rail with dates on the opposite side; narrow ones fall back to a list.
v2.14Latest
Liquid glass, layout components and a reduced-transparency mode that keeps every surface readable.v2.13
Twenty new charts with table views, keyboard tooltips and color-blind-safe slots.v2.12
Command palette, menus and a menubar with full keyboard support.v2.11
Data table: sorting, filters, selection, CSV export.
import { Badge } from "@/components/sheenui/badge/badge";
import { Timeline, TimelineItem } from "@/components/sheenui/timeline/timeline";
// Package build (after the first npm release, or a packed tarball): import { Badge, Timeline, TimelineItem } from "@sheenui/theme";
import { Sparkles as SparkleIcon, Tag as TagIcon } from "lucide-react";
// This example also uses badge: npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/badge.json
export function Example() {
// Zig-zag around a centered rail when the timeline is at least 42rem wide;
// a normal list below that (a container query, so it adapts to its own width).
return (
<Timeline layout="alternate" aria-label="Changelog">
<TimelineItem icon={<SparkleIcon />} tone="accent" title={<>v2.14 <Badge tone="accent">Latest</Badge></>} time="Oct 2026" description="…" />
<TimelineItem icon={<TagIcon />} title="v2.13" time="Sep 2026" description="…" />
<TimelineItem icon={<TagIcon />} title="v2.12" time="Aug 2026" description="…" />
</Timeline>
);
}Timeline
TimelineItem
TimelineHeading
Keyboard
Accessibility
- An ordered list (<ol>): pass aria-label. Timestamps are <time dateTime> when you give dateTime.
- The live step has aria-current="step"; markers and connector lines are decorative, so state is also written in words.
- Marker pop and line draw do not run under reduced motion.
When to use Timeline
- Use it for a project activity feed or an audit log where each entry has an avatar, a time and an action badge, grouped under headings such as Today, and a new entry slides in at the top. Use it as a vertical timeline in Tailwind for an order history or release notes.
- Use it for order tracking, with connector="accent" on completed steps, a current step that pulses softly, and a dashed line to what has not happened yet.
- Use layout="alternate" for a changelog or company history, where a wide container zig-zags around a centered rail with dates opposite, and narrow ones fall back to a plain list.
- Skip it when the user must act on each stage in sequence; Stepper handles progress through a flow, and Data table is better for dense, sortable records of the same kind.
- Pair it with Avatar for people markers, Badge for statuses in an item's content, and Skeleton while older events load.
Frequently asked questions
Related pages
67 components pages in all: browse them on All components.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .