Maya Chen confirmed Friday supper for 12
Guests10to12
An activity feed grouped by day: who did what, when, on a thin rail of avatars and icons. New items slide in at the top while the rest move down on the move spring, and changed numbers roll.
Maya Chen confirmed Friday supper for 12
Guests10to12
Deposit of $180 received
Priya Raman commented on the menu
Could we swap the tart for something nut-free? Two guests have allergies.
Maya Chen moved the arrival on Friday supper
Arrival7:00 PMto7:30 PM
Reminder sent to 10 guests
Maya Chen created Friday supper for 10
Maya Chen confirmed Friday supper for 12
Guests10to12
Deposit of $180 received
Priya Raman commented on the menu
Could we swap the tart for something nut-free? Two guests have allergies.
Maya Chen moved the arrival on Friday supper
Arrival7:00 PMto7:30 PM
Reminder sent to 10 guests
Maya Chen created Friday supper for 10
With UI Polish connected, ask your agent:
Or with the shadcn CLI:
An activity feed: who did what, and when. Items sit under day headings ("Today", "Yesterday", "Nov 14"), each with the actor's avatar or an icon dot on a thin rail, a sentence ("Maya Chen confirmed Friday supper for 12") and a relative time with the full date in a tooltip. An item can carry a quoted message, a field that changed ("Guests 10 → 12") or attachments. New items slide in at the top while the rest move down; "Load earlier" at the end brings in history.
<Timeline aria-label="Booking history" items={activity} onLoadMore={loadEarlier} loading={loadingEarlier} hasMore={cursor !== null}/>variant="compact").Timeline takes every <div> prop besides these. Name it with aria-label (default "Activity").
| Prop | What it does |
|---|---|
items | Newest first. { id, at, actor?, action, object?, avatar?, icon?, tone?, quote?, change?, attachments? }[] |
at | When: local wall-clock text ("2026-11-21T18:32"), a Date, or text with a zone |
actor, action, object | The sentence: the actor and the object in the text color, the verb between them muted. Leave actor out for something the system did ("Deposit of $180 received") |
avatar | A photo URL for the actor's avatar; their initials show without one |
icon, tone | An icon in a dot instead of an avatar, for system events; tone (neutral, accent, success, warning, danger) tints the dot |
quote | A message they wrote, in a soft box under the sentence |
change | { field, from, to }: "Guests ~~10~~ → 12". When the item arrives while the feed is open, the new value rolls up from the old one |
attachments | { name, href?, size? }[]: a row of file tags; with href each is a link. Long names fade at the end |
groupBy | day (default): under day headings. none: one list |
variant | default: 32px markers. compact: 20px markers and tighter rows, for a side panel |
onLoadMore, loading, hasMore | "Load earlier" at the end while hasMore (default true). loading makes it busy (the button's own timing: the label morphs to "Loading earlier…" only after 300ms, then holds at least 400ms) and sets aria-busy on the feed |
locale | Times, day names and "Yesterday" come from Intl |
| State | What you see |
|---|---|
| Today | "Just now", "12 minutes ago", "3 hours ago", moved on every 30 seconds |
| Earlier days | The clock time ("10:30 AM"); the heading says the day |
| Hover on a time | A tooltip with the full date and time |
| New item at the top | Fades in and slides down 6px into place; everything below moves down on the move spring; a changed number rolls once it's in |
| Earlier items at the end | Fade in where "Load earlier" was; the button moves down |
| Loading earlier | The button busy, the feed aria-busy |
| Nothing earlier | hasMore={false}: the button goes |
| Long text | The sentence and the quote wrap; a word too long for the line breaks inside itself; the time stays on its line |
| Focus | Each item takes focus (the ARIA feed), with a ring clear of its avatar and text |
| What | How |
|---|---|
| A new item at the top | Opacity and a 6px slide down over --ui-dur-base on --ui-ease-enter |
| The items it pushes down | FLIP: each starts where it was and moves to its place on --ui-ease-move over --ui-dur-move. Measured in page coordinates, so a feed that's centred in its box (which moves as it grows) glides too. Another arrival mid-move starts from where each item visibly is; nothing restarts or jumps |
| A changed number | Rolls (TextMorph) from the old value to the new one, 160ms after the item arrives so the roll is seen |
| Earlier items | Fade in over --ui-dur-fast; the button below them moves down with the same FLIP |
| A new day's heading | Fades in |
| Tooltip | The tooltip's own |
Under prefers-reduced-motion nothing moves: new items fade in place and the rest take their places at once.
role="feed" with aria-busy while loading earlier, and each item an <article> with aria-posinset and aria-setsize (-1 while more can load), named by its sentence.aria-describedby, so it's read without hovering.Before: new activity is prepended and every row below jumps down a row in one frame; times say "2026-11-21T18:32:00Z"; the list never says it's loading.
<ul>{activity.map((a) => <li>{a.user} {a.verb} {a.target} · {a.createdAt}</li>)}</ul>After: grouped by day, relative times with the exact one on hover, new items that slide in while the rest glide down, and a feed screen readers can step through.
<Timeline items={activity} onLoadMore={loadEarlier} loading={loading} hasMore={hasMore} />