Launch priceOne payment

Activity Feed

The shared stream of a workspace, newest first, a day at a time. Every row is a sentence: a person, a verb, a thing, with the comment, the change or the files underneath. One person doing the same thing several times becomes one row that opens. Tabs and search filter by kind with real counts, and earlier activity loads on demand.

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

It never moves what you are reading

Events that arrive while you are further down wait behind a small pill that says how many are new. Press it, or scroll back up, and they open in. At the top there is nobody to interrupt, so they appear straight away.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Layro's Activity Feed for this.
Install it: npx shadcn@latest add @layro/activity-feed
Import it from @/components/ui/activity-feed.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
eventsrequiredActivityEvent[]In any order. The feed sorts them newest first.
onOpen(target: ActivityTarget, event: ActivityEvent) => voidCalled when a target is pressed. Without it, targets are plain text.
nowDate | number"Now", for the relative times and for Today and Yesterday. Defaults to the clock, and then keeps time.
localestringA BCP 47 tag for dates and times: "en-GB". Defaults to the reader's own.
titleReact.ReactNode | falseThe heading. Pass `false` to hide it.
filterstringThe kind being shown, or "all". Leave it out and the feed keeps its own.
defaultFilterstringDefault "all".
onFilterChange(filter: string) => voidCalled with the kind, or "all", when a tab is chosen.
searchablebooleanShow the search field. Default true.
kindsRecord<string, ActivityKindInfo>Name, icon and plural for your own kinds, or to rename the six built in.
groupWindowMsnumberHow close together one person's repeats must be to share a row. Default ten minutes.
unreadSinceDate | number | stringDraws one "New" line under everything later than this moment.
onLoadMore() => void | Promise<void>Adds "Show earlier activity". Return a promise: it shows the wait, and a rejection offers Retry.
hasMorebooleanWhether there is anything earlier to load. Default false.
maxHeightnumber | stringScrolls the feed inside itself at this height. Leave it out and it grows with the page.
loadingbooleanWaiting for the first page. Shows rows shaped like the feed.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themeavatarbadgebuttoninputstatetabs

Lifetime access

Every component, and everything we ship next.

  • All 112 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in Workspace

All Workspace components