
Comment Thread
Cards
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/activity-feedAn issue's activity timeline: comments as cards on a rail, every other change as a compact line with its own icon (status pills, assignees, labels, priority, due dates, commits, files), grouped by day. Long runs fold into "Show n more", reactions toggle, times read relative with the full date on hover, an All / Comments / History filter, and a composer that posts on ⌘↩.
Other props pass through to the root element.
items*
ActivityItem[]
viewer
ActivityActor
The signed-in person, shown on the composer. Leave out to hide the composer.
onComment
(text: string) => void
Called with the text of a new comment. The feed shows it straight away.
collapseAfter
number
Default 4
Runs of more than this many non-comment events fold into a "Show n more" row.
now
Date
"Now" for relative times. Leave out to use the reader's clock (times render as dates until hydration).
title
React.ReactNode
Default "Activity"
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | ActivityItem[] | – | |
| viewer | ActivityActor | – | The signed-in person, shown on the composer. Leave out to hide the composer. |
| onComment | (text: string) => void | – | Called with the text of a new comment. The feed shows it straight away. |
| collapseAfter | number | 4 | Runs of more than this many non-comment events fold into a "Show n more" row. |
| now | Date | – | "Now" for relative times. Leave out to use the reader's clock (times render as dates until hydration). |
| title | React.ReactNode | "Activity" |