FeedCard

An activity feed item with avatar, headline, detail text, and relative time.

Import

import { FeedCard } from "@gumtree/ui/forge/FeedCard";

Props

PropTypeDefaultDescription
avatarPlaceholderstring-Initial letter for the avatar placeholder
avatarSrcstring-URL for the avatar image
avatarColorstring-Background color for the avatar placeholder
headline*ComponentChildren-Primary content — supports links, badges, and inline elements
detailComponentChildren-Secondary description text
timestring-Relative timestamp

Examples

With Detail

A feed card showing a merge event with a badge.

C
carol merged PR #128 in example-app merged
BCP-47 locale matching with fallback chains
4d
<FeedCard
  avatarPlaceholder="C"
  headline={<><strong>carol</strong> merged PR <a>#128</a> in <a>example-app</a> <FeedBadge status="merged" /></>}
  detail="BCP-47 locale matching with fallback chains"
  time="4d"
/>

Minimal

A simple feed card with just a headline.

B
You starred nickel-lang/nickel
Programmable configuration language — 2.4k stars
1d
<FeedCard
  avatarPlaceholder="B"
  headline={<>You starred <a>nickel-lang/nickel</a></>}
  detail="Programmable configuration language — 2.4k stars"
  time="1d"
/>