Activity feed
Data displayChronological activity composed from native avatars, badges, content rows and motion surfaces.
Try it
Add to your project
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/activity-feed.jsonThe command includes the component’s shared dependencies. Your project keeps editable source files.
Include the complete example
This example also composes button, typography. Install its parts together:
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/activity-feed.json https://luv-jeri.github.io/cojeev-ui/r/button.json https://luv-jeri.github.io/cojeev-ui/r/typography.jsonUsing activity feed
Pass entries in the order they should appear, with stable IDs and optional actor, timestamp, badge and details.
Omit initialVisible to show all supplied entries. Set initialVisible and pageSize to reveal supplied history in pages.
The feed displays your data; it does not fetch, manufacture events or reorder timestamps.
API
Compose the exported parts below. The prop types are read from the React source during the registry build.
Native element or underlying primitive props are inherited where declared, including accessible labels, event handlers and refs.
ActivityFeedProps
| Prop | Type | Required |
|---|---|---|
entriesCaller supplies the chronological order; the feed never reorders entries. | readonly ActivityEntry[] | Yes |
title | React.ReactNode | No |
description | React.ReactNode | No |
empty | React.ReactNode | No |
initialVisibleOmit to show every supplied entry, including later appends. | number | No |
pageSize | number | No |
showMoreLabel | React.ReactNode | No |
Accessibility
A semantic ordered list preserves chronology. Show more announces the new count and moves focus to the first newly shown entry.
Images are decorative alongside named actors. New content respects the shared reduced-motion contract.
States and appearance
For conditional content, keep a MotionPresence boundary around keyed MotionSurface children. The shared entrance and exit states work with native primitives and respect your motion preference.
Try pointer and keyboard interaction, and switch the appearance control in the navigation to compare light and dark mode. Motion respects reduced motion preferences.