ItemContent
The column of words after the media; put an ItemTitle in it, then an optional ItemDescription.
import { ItemContent } from '@/components/ui/goop/item';npx shadcn@4.23.1 add @goop/trail-itemOne row of a list of records, for React and Tailwind CSS. Free, MIT.
ItemContent after the title (and before a line row's assignee mark)ItemContent (and before ItemActions, if the row has one)import { Item, ItemGroup, ItemOverlay, ItemControl, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemLabels, ItemText, ItemEnd, ItemActions } from '@/components/ui/goop/item';
import { Card } from '@/components/ui/goop/card';
import { Avatar } from '@/components/ui/goop/avatar';
import { StatusMark } from '@/components/ui/goop/status-mark';
import { Badge, BadgeLabel } from '@/components/ui/goop/badge';
<>
<Card variant="outline">
<Item unread>
<ItemContent>
<ItemTitle>Tags vanish after a sync on tablets</ItemTitle>
<ItemDescription>Bilal Rashed commented on FW-121</ItemDescription>
</ItemContent>
<ItemEnd>
19 Nov
<Avatar variant="solid" size="xs" name="Yuto Sakamaki">
YS
</Avatar>
</ItemEnd>
</Item>
</Card>
<ItemGroup asChild>
<ul>
{[
{ id: "FW-9", title: "Interview notes lose their tags after a sync", labels: ["Bug"] },
{ id: "FW-1108", title: "Export a study as a shareable file", labels: ["Feature", "Design"] },
].map((issue) => (
<Item key={issue.id} variant="line" asChild>
<li>
<ItemOverlay asChild>
<a href={`/issues/${issue.id}`} aria-labelledby={`title-${issue.id}`} />
</ItemOverlay>
<ItemMedia variant="mark">
<StatusMark status="in-progress" />
</ItemMedia>
<ItemDescription>{issue.id}</ItemDescription>
<ItemContent>
<ItemTitle id={`title-${issue.id}`}>{issue.title}</ItemTitle>
<ItemLabels>
{issue.labels.map((label) => (
<Badge key={label} variant="outline">
<BadgeLabel>{label}</BadgeLabel>
</Badge>
))}
</ItemLabels>
</ItemContent>
<ItemActions>20 Nov</ItemActions>
</li>
</Item>
))}
</ul>
</ItemGroup>
</>In the list look, press a row to open its project (it shows under the card); tick the box at its start to select it and archive several at once; Archive at a row’s end, shown under the pointer or the keyboard, takes that row away. Bring them all back after. Look draws every other look of the item the theme’s docs stage shows: on Trail the row alone in its card, the session rows, the dimmed row, the inbox, count, status, record and table rows; on Meadow the notes list, the linked, record and standing rows, the people, task and value rows, the reordered day, the meeting rows and the to-do row. The projects are our own sample; archiving only hides them in the page.
Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Item on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.
npx shadcn@4.23.1 add @goop/trail-itemAdd the Goop Item to this project. The install steps are at https://goop.so/docs/install.mdimport { Item, ItemGroup, ItemOverlay, ItemControl, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemLabels, ItemText, ItemEnd, ItemActions } from '@/components/ui/goop/item';
import { Card } from '@/components/ui/goop/card';
import { Avatar } from '@/components/ui/goop/avatar';
import { StatusMark } from '@/components/ui/goop/status-mark';
import { Badge, BadgeLabel } from '@/components/ui/goop/badge';
<>
<Card variant="outline">
<Item unread>
<ItemContent>
<ItemTitle>Tags vanish after a sync on tablets</ItemTitle>
<ItemDescription>Bilal Rashed commented on FW-121</ItemDescription>
</ItemContent>
<ItemEnd>
19 Nov
<Avatar variant="solid" size="xs" name="Yuto Sakamaki">
YS
</Avatar>
</ItemEnd>
</Item>
</Card>
<ItemGroup asChild>
<ul>
{[
{ id: "FW-9", title: "Interview notes lose their tags after a sync", labels: ["Bug"] },
{ id: "FW-1108", title: "Export a study as a shareable file", labels: ["Feature", "Design"] },
].map((issue) => (
<Item key={issue.id} variant="line" asChild>
<li>
<ItemOverlay asChild>
<a href={`/issues/${issue.id}`} aria-labelledby={`title-${issue.id}`} />
</ItemOverlay>
<ItemMedia variant="mark">
<StatusMark status="in-progress" />
</ItemMedia>
<ItemDescription>{issue.id}</ItemDescription>
<ItemContent>
<ItemTitle id={`title-${issue.id}`}>{issue.title}</ItemTitle>
<ItemLabels>
{issue.labels.map((label) => (
<Badge key={label} variant="outline">
<BadgeLabel>{label}</BadgeLabel>
</Badge>
))}
</ItemLabels>
</ItemContent>
<ItemActions>20 Nov</ItemActions>
</li>
</Item>
))}
</ul>
</ItemGroup>
</>| Option | Type | What it does |
|---|---|---|
| variant | default | ghost | line | outline = default | |
| size | md | sm = md |
| Part | What it is |
|---|---|
| ItemGroup | A list of Item rows with ONE hover wash that glides from row to row under the pointer and the keyboard's focus |
| ItemOverlay | An invisible control over the whole row that makes it clickable; name it with aria-label |
| ItemControl | A line row's selection slot |
| ItemMedia | A tile or a picture at the row's start |
| ItemContent | The column of words after the media; put an ItemTitle in it, then an optional ItemDescription |
| ItemTitle | The row's main words, first in ItemContent, on one line cut with an ellipsis |
| ItemDescription | The line under the title |
| ItemLabels | A row's labels, in its ItemContent after the title (and before a line row's assignee mark) |
| ItemText | Plain words at the row's end (a role, a count) |
| ItemEnd | The row's trailing meta at its end edge, after ItemContent (and before ItemActions, if the row has one) |
| ItemActions | The row's end, never shrinking |
The row's end, never shrinking.
import { ItemActions } from '@/components/ui/goop/item';The column of words after the media; put an ItemTitle in it, then an optional ItemDescription.
import { ItemContent } from '@/components/ui/goop/item';A line row's selection slot.
import { ItemControl } from '@/components/ui/goop/item';false shows it at rest.The line under the title.
import { ItemDescription } from '@/components/ui/goop/item';The row's trailing meta at its end edge, after ItemContent (and before ItemActions, if the row has one).
import { ItemEnd } from '@/components/ui/goop/item';A list of Item rows with ONE hover wash that glides from row to row under the pointer and the keyboard's focus.
import { ItemGroup } from '@/components/ui/goop/item';A row's labels, in its ItemContent after the title (and before a line row's assignee mark).
import { ItemLabels } from '@/components/ui/goop/item';A tile or a picture at the row's start.
import { ItemMedia } from '@/components/ui/goop/item';import { Item } from '@/components/ui/goop/item';ItemText className="shrink-0".div of yours inside it or a second ItemActions.li, or the link or button the whole row is).unreadLabel to a reader.An invisible control over the whole row that makes it clickable; name it with aria-label.
import { ItemOverlay } from '@/components/ui/goop/item';aria-labelledby is required.aria-label is required.Plain words at the row's end (a role, a count).
import { ItemText } from '@/components/ui/goop/item';default the row's grey, destructive the red of a value that warns.The row's main words, first in ItemContent, on one line cut with an ellipsis.
import { ItemTitle } from '@/components/ui/goop/item';| Key | What it does |
|---|---|
| Enter | Follow |
line row is one line with no second line of words: its ItemDescription is the record's short id and never shrinks, so a sentence there pushes the title out and runs under the row's end on a phone. A title over a line of words, with a Badge at the end, is the default row (its rows in a Card variant="outline") or the ghost row. A record's labels go in ItemLabels after its title, never loose in ItemContent or ItemActions (ItemLabels folds them under the title on a phone).Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.
npx shadcn@4.23.1 add @goop/trail-itemGoop makes design skills and React components for AI coding agents, so every screen your agent builds matches.