Skip to content
PixiKit

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
NameTypeDefaultDescription
entriesFeedEntry[]RequiredThe entries, in any order; they are sorted by time.
order"newest" | "oldest""newest"Which end holds the newest entry.
groupByDaybooleantrueSticky headings for Today, Yesterday and then the date.
railbooleantrueThe line that connects the markers.
relativeTimebooleantrueTimes like "5 min ago", kept current each minute.
localestringNoneThe language times and dates are written in. Default: the browser's.
composerbooleanfalseShows a box to write a comment.
onPost(text: string) => void | Promise<void>NoneCalled with the text of a new comment; reject to mark it failed.
composerPlaceholderstring"Write a comment"Placeholder of the comment box.
currentUserFeedActor{ name: "You" }Who writes the comments.
pageSizenumberNoneHow many of the newest entries show before "Show earlier".
onLoadMore() => void | Promise<void>NoneCalled when "Show earlier" needs entries you have not passed yet.
hasMorebooleanfalseWhether more earlier entries can be loaded.
loadingbooleanfalseShows entries shaped like the real ones.
emptyReactNodeNoneShown when there are no entries.
ariaLabelstring"Activity"Name for the feed, read by screen readers.
classNamestringNone

Related