Pulse Feed
An activity timeline of events, comments, changes and tags on a rail that draws itself. It groups by day under sticky headings, keeps relative times current, and has a comment box that shows a post at once, settles it or marks it failed with Retry, and a Show earlier button that opens older entries without moving the view.
pixikit.com/docs/app-ui/lists/pulse-feed
Customize
Order
Group by day
Rail
Relative time
Composer
Page size6
Has more
Loading
Props
17| Name | Type | Default | Description |
|---|---|---|---|
entries | FeedEntry[] | Required | The entries, in any order; they are sorted by time. |
order | "newest" | "oldest" | "newest" | Which end holds the newest entry. |
groupByDay | boolean | true | Sticky headings for Today, Yesterday and then the date. |
rail | boolean | true | The line that connects the markers. |
relativeTime | boolean | true | Times like "5 min ago", kept current each minute. |
locale | string | None | The language times and dates are written in. Default: the browser's. |
composer | boolean | false | Shows a box to write a comment. |
onPost | (text: string) => void | Promise<void> | None | Called with the text of a new comment; reject to mark it failed. |
composerPlaceholder | string | "Write a comment" | Placeholder of the comment box. |
currentUser | FeedActor | { name: "You" } | Who writes the comments. |
pageSize | number | None | How many of the newest entries show before "Show earlier". |
onLoadMore | () => void | Promise<void> | None | Called when "Show earlier" needs entries you have not passed yet. |
hasMore | boolean | false | Whether more earlier entries can be loaded. |
loading | boolean | false | Shows entries shaped like the real ones. |
empty | ReactNode | None | Shown when there are no entries. |
ariaLabel | string | "Activity" | Name for the feed, read by screen readers. |
className | string | None |