# Activity Feed

A vertical timeline of comments, mentions, status changes, uploads, and other events.

Activity Feed is a timeline of what happened. One rail threads the events, and each event composes only the parts it needs: a marker, a header, a short note, a quoted card, files, or a trailing action.

```tsx
import { AtIcon, ChatCircleIcon, CheckCircleIcon } from "@phosphor-icons/react";
import { ActivityFeed, Avatar, IconButton } from "@zentara-co/zenos-ui";

function ActivityFeedPreviewExample() {
  return (
    <ActivityFeed className="w-full max-w-2xl">
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <Avatar name="Mina Cho" size={32} />
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
            commented
            <ActivityFeed.Time dateTime="2026-06-15T14:00:00Z">2h ago</ActivityFeed.Time>
          </ActivityFeed.Header>
          <ActivityFeed.Body>
            The empty states are clearer now. Can we ship the copy tweaks before Friday?
          </ActivityFeed.Body>
        </ActivityFeed.Content>
        <ActivityFeed.Actions>
          <IconButton aria-label="Reply to Mina Cho" size="sm" variant="ghost">
            <ChatCircleIcon />
          </IconButton>
        </ActivityFeed.Actions>
      </ActivityFeed.Item>
      <ActivityFeed.Item unread>
        <ActivityFeed.Marker>
          <ActivityFeed.Icon variant="primary">
            <AtIcon />
          </ActivityFeed.Icon>
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
            mentioned you in the migration notes
            <ActivityFeed.Time dateTime="2026-06-15T12:10:00Z">3h ago</ActivityFeed.Time>
          </ActivityFeed.Header>
          <ActivityFeed.Body>Can you own the checklist for the billing cutover?</ActivityFeed.Body>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <ActivityFeed.Icon variant="success">
            <CheckCircleIcon />
          </ActivityFeed.Icon>
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
            marked the review done
            <ActivityFeed.Time dateTime="2026-06-15T09:40:00Z">6h ago</ActivityFeed.Time>
          </ActivityFeed.Header>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
    </ActivityFeed>
  );
}
```

## Import

```tsx
import { ActivityFeed } from "@zentara-co/zenos-ui";
```

## Anatomy

`ActivityFeed` renders an `ol`. Each `ActivityFeed.Item` renders an `li`. There is no prop for hiding the time, body, or marker: leave the part out.

```tsx
<ActivityFeed>
  <ActivityFeed.Item>
    <ActivityFeed.Marker>
      <ActivityFeed.Icon variant="success">{/* icon */}</ActivityFeed.Icon>
    </ActivityFeed.Marker>
    <ActivityFeed.Content>
      <ActivityFeed.Header>
        <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
        marked the review done
        <ActivityFeed.Time dateTime="2026-06-15T09:40:00Z">6h ago</ActivityFeed.Time>
      </ActivityFeed.Header>
      <ActivityFeed.Body>{/* optional note */}</ActivityFeed.Body>
    </ActivityFeed.Content>
    <ActivityFeed.Actions>{/* optional controls */}</ActivityFeed.Actions>
  </ActivityFeed.Item>
</ActivityFeed>
```

Use Activity Feed for an audit log, a record history, or a notification list. Use [Empty State](/components/empty-state/) when the list has no events yet. Use [Alert](/components/alert/) for a single status message that is not part of a history.

## Markers

The marker names the kind of event. `ActivityFeed.Icon` is a soft tinted tile. `ActivityFeed.Dot` is the same 32px slot with a small dot for a minor edit. For a person, put [Avatar](/components/avatar/) in the marker at `size={32}`. The slot stays 32px at both densities so the rail stays aligned.

```tsx
import { UploadSimpleIcon } from "@phosphor-icons/react";
import { ActivityFeed, Avatar } from "@zentara-co/zenos-ui";

function ActivityFeedMarkersExample() {
  return (
    <ActivityFeed className="w-full max-w-2xl">
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <Avatar name="Jonah Adeyemi" size={32} />
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
            joined the workspace
            <ActivityFeed.Time dateTime="2026-06-15T15:20:00Z">2m ago</ActivityFeed.Time>
          </ActivityFeed.Header>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <ActivityFeed.Icon variant="teal">
            <UploadSimpleIcon />
          </ActivityFeed.Icon>
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
            uploaded the press kit
            <ActivityFeed.Time dateTime="2026-06-15T15:12:00Z">10m ago</ActivityFeed.Time>
          </ActivityFeed.Header>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <ActivityFeed.Dot variant="default" />
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
            renamed the project
            <ActivityFeed.Time dateTime="2026-06-15T15:05:00Z">17m ago</ActivityFeed.Time>
          </ActivityFeed.Header>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
    </ActivityFeed>
  );
}
```

Icon and dot variants are `default`, `primary`, `success`, `warning`, `info`, `destructive`, `purple`, `teal`, `orange`, and `magenta`. The tile and the dot are decorative. The actor and the action carry the meaning.

## Unread

`unread` on an item strengthens the header and adds a brand dot at the end of the row. The dot has the visually hidden label “Unread”. The row itself stays untinted.

## Quoted notes and files

`ActivityFeed.Body` is a short muted line. `ActivityFeed.Card` is a nested surface for a comment, review, or note, with a smaller radius than [Card](/components/card/).

Files and images belong in `ActivityFeed.Attachments`. Lay `ActivityFeed.Image` thumbnails out in a wrapping row, and compose a [File Card](/components/file-card/) for each file. Each image requires `alt`.

```tsx
import { UploadSimpleIcon } from "@phosphor-icons/react";
import { ActivityFeed, Avatar, FileCard } from "@zentara-co/zenos-ui";

function ActivityFeedAttachmentsExample() {
  return (
    <ActivityFeed className="w-full max-w-2xl">
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <ActivityFeed.Icon variant="teal">
            <UploadSimpleIcon />
          </ActivityFeed.Icon>
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
            attached 3 files
            <ActivityFeed.Time dateTime="2026-06-15T10:00:00Z">5h ago</ActivityFeed.Time>
          </ActivityFeed.Header>
          <ActivityFeed.Attachments>
            <div className="flex flex-wrap gap-2">
              <ActivityFeed.Image
                src="https://images.unsplash.com/photo-1669604120699-eeba651ac235?auto=format&fit=crop&w=400&q=80"
                alt="Turquoise lake surrounded by mountains"
              />
              <ActivityFeed.Image
                src="https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=400&q=80"
                alt="Close-up of a computer circuit board"
              />
            </div>
            <FileCard variant="ghost">
              <FileCard.Icon type="archive" />
              <FileCard.Content>
                <FileCard.Name>source-assets.zip</FileCard.Name>
                <FileCard.Meta>18 MB · Archive</FileCard.Meta>
              </FileCard.Content>
            </FileCard>
          </ActivityFeed.Attachments>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
      <ActivityFeed.Item>
        <ActivityFeed.Marker>
          <Avatar name="Jonah Adeyemi" size={32} />
        </ActivityFeed.Marker>
        <ActivityFeed.Content>
          <ActivityFeed.Header>
            <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
            left a review
            <ActivityFeed.Time dateTime="2026-06-15T08:00:00Z">8h ago</ActivityFeed.Time>
          </ActivityFeed.Header>
          <ActivityFeed.Card>
            The motion is right, but the empty-state illustration feels heavy on the cream theme.
            Try it at a smaller size.
          </ActivityFeed.Card>
        </ActivityFeed.Content>
      </ActivityFeed.Item>
    </ActivityFeed>
  );
}
```

## Row actions and links

`ActivityFeed.Actions` sits beside the content, aligned to the marker, so it stays on the first line as the event grows. Compose [Icon Button](/components/icon-button/) or [Button](/components/button/) there and give each control a specific accessible name.

To make the whole event a link or button, pass `as` on the item. The list item stays an `li`, and the link or button becomes the surface inside it:

```tsx
<ActivityFeed.Item as="a" href="/reviews/1">
  <ActivityFeed.Content>
    <ActivityFeed.Header>Merged the pull request</ActivityFeed.Header>
  </ActivityFeed.Content>
</ActivityFeed.Item>
```

`as` implies `interactive`, which adds a hover fill, a pressed fill, and a focus ring. Keep actions off a linked item so a control is not nested inside the link. `ActivityFeed.Actor` also accepts `as` when only the name should navigate.

## Day groups

`ActivityFeed.Group` gathers events under `ActivityFeed.GroupLabel`. The label sits in the text column, and the rail runs through it, so the timeline stays one line from the first event to the last. Each group is its own list, named by the label.

```tsx
import { ActivityFeed, Avatar } from "@zentara-co/zenos-ui";

function ActivityFeedGroupsExample() {
  return (
    <ActivityFeed className="w-full max-w-2xl">
      <ActivityFeed.Group>
        <ActivityFeed.GroupLabel>Today</ActivityFeed.GroupLabel>
        <ActivityFeed.Item>
          <ActivityFeed.Marker>
            <Avatar name="Mina Cho" size={32} />
          </ActivityFeed.Marker>
          <ActivityFeed.Content>
            <ActivityFeed.Header>
              <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
              checked in for the 10:30 visit
              <ActivityFeed.Time dateTime="2026-06-15T10:24:00Z">10:24</ActivityFeed.Time>
            </ActivityFeed.Header>
          </ActivityFeed.Content>
        </ActivityFeed.Item>
        <ActivityFeed.Item>
          <ActivityFeed.Marker>
            <ActivityFeed.Dot />
          </ActivityFeed.Marker>
          <ActivityFeed.Content>
            <ActivityFeed.Header>
              <ActivityFeed.Actor>Front desk</ActivityFeed.Actor>
              marked the invoice paid
              <ActivityFeed.Time dateTime="2026-06-15T09:02:00Z">09:02</ActivityFeed.Time>
            </ActivityFeed.Header>
          </ActivityFeed.Content>
        </ActivityFeed.Item>
      </ActivityFeed.Group>
      <ActivityFeed.Group>
        <ActivityFeed.GroupLabel>Yesterday</ActivityFeed.GroupLabel>
        <ActivityFeed.Item>
          <ActivityFeed.Marker>
            <Avatar name="Jonah Adeyemi" size={32} />
          </ActivityFeed.Marker>
          <ActivityFeed.Content>
            <ActivityFeed.Header>
              <ActivityFeed.Actor>Jonah Adeyemi</ActivityFeed.Actor>
              left a note on the record
              <ActivityFeed.Time dateTime="2026-06-14T16:40:00Z">16:40</ActivityFeed.Time>
            </ActivityFeed.Header>
            <ActivityFeed.Body>Prefers morning slots. Bring the March x-ray.</ActivityFeed.Body>
          </ActivityFeed.Content>
        </ActivityFeed.Item>
      </ActivityFeed.Group>
    </ActivityFeed>
  );
}
```

The label renders a `div` by default. Pass `as="h2"` or another heading when the group name should appear in the page outline.

## Separator

`separator="rail"` is the default timeline. `separator="rule"` replaces the rail with a hairline between events, for an audit log or notification inbox. `separator="none"` is a plain list for a single notice or a digest where a timeline would be too heavy.

```tsx
import { ActivityFeed, Stack, Text } from "@zentara-co/zenos-ui";

function ActivityFeedSeparatorExample() {
  const events = ["Edited the brief", "Uploaded the press kit", "Renamed the project"] as const;

  return (
    <Stack gap="6" className="w-full max-w-2xl">
      {(["rail", "rule", "none"] as const).map((separator) => (
        <Stack key={separator} gap="3">
          <Text size="s" weight="medium" color="subtle" className="capitalize">
            {separator}
          </Text>
          <ActivityFeed separator={separator}>
            {events.map((event) => (
              <ActivityFeed.Item key={event}>
                <ActivityFeed.Marker>
                  <ActivityFeed.Dot />
                </ActivityFeed.Marker>
                <ActivityFeed.Content>
                  <ActivityFeed.Header>
                    <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
                    {event}
                  </ActivityFeed.Header>
                </ActivityFeed.Content>
              </ActivityFeed.Item>
            ))}
          </ActivityFeed>
        </Stack>
      ))}
    </Stack>
  );
}
```

## Density

`density="comfortable"` is the default. `density="compact"` tightens the gap between events and the type of the header. Density also inherits from `DensityProvider`. The marker size does not change.

```tsx
import { AtIcon, CheckCircleIcon } from "@phosphor-icons/react";
import { ActivityFeed, Grid, Stack, Text } from "@zentara-co/zenos-ui";

function ActivityFeedDensityExample() {
  return (
    <Grid columns={{ base: 1, md: 2 }} gap="6" className="w-full">
      {(["comfortable", "compact"] as const).map((density) => (
        <Stack key={density} gap="3">
          <Text size="s" weight="medium" color="subtle" className="capitalize">
            {density}
          </Text>
          <ActivityFeed density={density}>
            <ActivityFeed.Item>
              <ActivityFeed.Marker>
                <ActivityFeed.Icon variant="info">
                  <AtIcon />
                </ActivityFeed.Icon>
              </ActivityFeed.Marker>
              <ActivityFeed.Content>
                <ActivityFeed.Header>
                  <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
                  edited the brief
                  <ActivityFeed.Time dateTime="2026-06-15T14:00:00Z">1h ago</ActivityFeed.Time>
                </ActivityFeed.Header>
              </ActivityFeed.Content>
            </ActivityFeed.Item>
            <ActivityFeed.Item>
              <ActivityFeed.Marker>
                <ActivityFeed.Icon variant="success">
                  <CheckCircleIcon />
                </ActivityFeed.Icon>
              </ActivityFeed.Marker>
              <ActivityFeed.Content>
                <ActivityFeed.Header>
                  <ActivityFeed.Actor>Mina Cho</ActivityFeed.Actor>
                  exported the report
                  <ActivityFeed.Time dateTime="2026-06-15T14:20:00Z">40m ago</ActivityFeed.Time>
                </ActivityFeed.Header>
              </ActivityFeed.Content>
            </ActivityFeed.Item>
          </ActivityFeed>
        </Stack>
      ))}
    </Grid>
  );
}
```

## Variants

default, primary, success, warning, info, destructive, purple, teal, orange, magenta

## Anatomy

```text
ActivityFeed.Root
ActivityFeed.Item
ActivityFeed.Marker
ActivityFeed.Icon
ActivityFeed.Dot
ActivityFeed.Content
ActivityFeed.Header
ActivityFeed.Actor
ActivityFeed.Time
ActivityFeed.Body
ActivityFeed.Card
ActivityFeed.Attachments
ActivityFeed.Image
ActivityFeed.Actions
ActivityFeed.Group
ActivityFeed.GroupLabel
```

## API

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| separator | rail \| rule \| none | rail | Rail draws the timeline through the marker column. Rule replaces it with a hairline between events. None is a plain list. |
| density | comfortable \| compact | comfortable | Controls event spacing. The marker stays 32px. Inherits from DensityProvider when omitted. |
| Item.unread | boolean | false | Strengthens the header and adds a brand dot with the visually hidden label Unread. |
| Item.interactive | boolean | false | Adds hover, press, and focus treatment on the event surface. |
| Item.as | ElementType | div | Renders the event surface inside the list item. Use a or button for a native link or control. Implies interactive. |
| Icon.variant / Dot.variant | default \| primary \| success \| warning \| info \| destructive \| purple \| teal \| orange \| magenta | default | Soft tint for a typed event or low-emphasis dot. Both markers are decorative. |
| Time.dateTime | string | — | Machine-readable datetime for the time element. |
| Image.alt | string | — | Required alternative text for an attachment thumbnail. |
| GroupLabel.as | ElementType | div | Rendered element for the group name. Use a heading when it belongs in the page outline. |
| className | string | — | Merged last on every part. |
| native props | React.HTMLAttributes<HTMLOListElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

## Accessibility

The feed is an ordered list. Group labels name their nested lists, so a screen reader can announce “Today, list” before the events in that day. Pass `dateTime` on `ActivityFeed.Time` so the visible relative time has a machine-readable value.

Icons and dots are `aria-hidden`. An avatar in the marker keeps its own accessible name. Attachment images require alternative text. The unread dot includes the hidden text “Unread”.

A linked or button event uses a native `a` or `button` inside the list item. Do not put another link or button inside that surface. Icon-only row actions need their own accessible names. The feed does not announce new events on its own; add a live region in the surrounding feature when an update should be spoken.

Source: https://zenos-ui.pages.dev/components/activity-feed/