A comment or an update in a record's history

1 min readWritten for your agentMarkdown

A history line's sentence (ActivityItemContent) is short and cut at six lines: never put a comment's words in it. A comment's or an update's own words go in ActivityItemBody, a quiet box under the sentence on its start edge, which holds paragraphs, a list or a link in the copy (Link variant="primary"); a time, a menu or a reaction at the end of the first row goes in ActivityItemAside, which stays beside the sentence on a phone.

Show the code40 lines
TSX
import {
  ActivityItem,
  ActivityItemActor,
  ActivityItemAside,
  ActivityItemBody,
  ActivityItemContent,
  ActivityItemMedia,
  ActivityItemName,
} from '@/components/ui/goop/activity-item';
import { Avatar, AvatarFallback } from '@/components/ui/goop/avatar';
import { Link } from '@/components/ui/goop/link';

<ul>
  <ActivityItem asChild>
    <li>
      <ActivityItemMedia>
        <Avatar variant="solid" size="3xs" name="Bilal Rashed" aria-hidden="true">
          <AvatarFallback>BR</AvatarFallback>
        </Avatar>
      </ActivityItemMedia>
      <ActivityItemContent>
        <ActivityItemActor>
          <Link variant="muted" href="/people/bilal">
            <ActivityItemName>Bilal Rashed</ActivityItemName>
          </Link>
        </ActivityItemActor>{' '}
        commented
      </ActivityItemContent>
      <ActivityItemAside>
        <Link variant="muted" href="#comment-12">
          12 min ago
        </Link>
      </ActivityItemAside>
      <ActivityItemBody>
        <p>Repro'd on my tablet. Only happens when the sync runs while a tag is open.</p>
        <p>I'm out Thursday afternoon, Dagny has the rota.</p>
      </ActivityItemBody>
    </li>
  </ActivityItem>
</ul>;

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.