Activity feed
What happened, newest first: grouped by day, runs folded (“×3”), “2 min ago” kept fresh, new events announced — and Timeline, one thing's history on a rail.
- Domain
- Data display
- Support level
- Size
- 2.5 kB gzip, budget 2.5 kB
- Who uses it
- 1 files of the live products and sites import it Counted in the dated inventory of 2026-11-23.
import { ActivityFeed, Timeline } from "@krizaka/ui/activity-feed";Web and mobile — the same component for React and React Native. Beta: its API may still change in a minor version.
Why it is here. Sovkora's job history (the adoption of Elements, PS-E).
When to use
- Sovkora's job activity, a creator's notifications and tips.
- The bids of a live auction (
live). - A payout's or a job's history (
Timeline).
When not to use
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { ActivityFeed, Timeline } from "@krizaka/ui/activity-feed";Examples
Activity
By day, three tips folded into one, how long ago.
Live
New bids announced, each led by its bidder's avatar.
Timeline
A payout's history, oldest first.
Props
ActivityFeed
What happened, newest first: grouped by day, runs folded (“Mina tipped ×3”), “2 min ago” kept fresh, new events
announced when live. Sovkora's job activity, a creator's notifications, the console's audit log.
| Prop | Type | Default | Description |
|---|---|---|---|
aria-labelrequired | string | — | The feed's accessible name (“Activity”). |
eventsrequired | readonly T[] | — | The events, in any order. |
nowrequired | Date | — | Now, for the “… ago” and the day headings: the host gives the time (from the server, the same text on both sides); the feed never reads the clock. |
action | ((event: T) => ReactNode) | — | After an event's text: an action (Reply, View). |
className | string | — | Classes merged on the root. |
empty | ReactNode | — | Shown when there is no event (an EmptyState). |
fold | boolean | true | Fold the runs of the same actor and kind. Default true. |
labels | Partial<ActivityFeedLabels> | — | The words, passed translated; English by default. |
leading | ((event: T) => ReactNode) | — | Before an event's text: its actor's Avatar, an icon. |
live | boolean | — | Announce new events politely (a stream). |
locale | string | en-US | The locale of the dates and the “… ago”. Default en-US. |
ticking | boolean | true | Keep the “… ago” fresh: the feed's time moves a minute every minute from now. Default true. |
Timeline
One thing's history on a rail, oldest first: each event a marker in its tone, its time and its words.
| Prop | Type | Default | Description |
|---|---|---|---|
aria-labelrequired | string | — | The timeline's accessible name (“History of the payout”). |
eventsrequired | readonly T[] | — | One thing's events, oldest first (a job's run, a payout's life). |
className | string | — | Classes merged on the list. |
locale | string | en-US | The locale of the times. Default en-US. |
timeStyle | "time" | "date" | "datetime" | time | How a time is written: time (14:02, default), datetime, date. |
Accessibility
- Days are headings; each time is a
timewith its full date. liveannounces how many new events arrived, politely, never each one.
Best practices
- Write each event as a sentence (“Mina tipped your video $5”), passed translated.
- Give
actorandkindto fold repeated events. - Pass
nowfrom the server to render the same “… ago” on both sides.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub