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 https://registry.goop.so/g/<link>/meadow-item.json --yesOne row of a list of records, for React and Tailwind CSS. Part of Goop Pro.
ItemReorderGroupline row's first)variant="plain", the grey label chip), in its ItemContent after the title, as one run 6 px apart, each kept wholeItemContent (and before ItemActions, if the row has one)import { ItemReorderGroup, ItemHandle, ItemDescription, ItemLabels, ItemText, ItemActions } from '@/components/ui/goop/item';
import { Badge } from '@/components/ui/goop/badge';
import { Checkbox } from '@/components/ui/goop/checkbox';
import {
Item,
ItemContent,
ItemControl,
ItemEnd,
ItemGroup,
ItemMedia,
ItemOverlay,
ItemTitle,
} from '@/components/ui/goop/item';
const NOTES = [
{ id: 'drainage', title: 'North Field Drainage Plan', unread: true },
{ id: 'samples', title: 'Soil Samples Check-In', unread: false },
];
function NotesList() {
return (
<ItemGroup asChild>
<ul>
{NOTES.map((note) => (
<Item key={note.id} unread={note.unread} asChild>
<li>
<ItemOverlay asChild>
<a href={`/notes/${note.id}`} aria-labelledby={`note-${note.id}`} />
</ItemOverlay>
<ItemMedia variant="image">
<img src={`/notes/${note.id}/preview.png`} alt="" className="size-4" />
</ItemMedia>
<ItemContent>
<ItemTitle id={`note-${note.id}`}>{note.title}</ItemTitle>
</ItemContent>
</li>
</Item>
))}
</ul>
</ItemGroup>
);
}
function MeetingRow({ onOpen }: { onOpen: () => void }) {
return (
<Item variant="ghost" asChild>
<button type="button" onClick={onOpen}>
<ItemEnd>25 Nov 26</ItemEnd>
<ItemContent><ItemTitle>Seed Order Review</ItemTitle></ItemContent>
<Badge variant="tag">Note</Badge>
</button>
</Item>
);
}
function TodoRow({ onOpen }: { onOpen: () => void }) {
return (
<Item variant="todo">
<ItemOverlay aria-labelledby="todo-fence" onClick={onOpen} />
<ItemControl reveal={false}><Checkbox aria-labelledby="todo-fence" /></ItemControl>
<ItemContent><ItemTitle id="todo-fence">Walk the north fence line</ItemTitle></ItemContent>
<ItemEnd><Badge>Dec 2</Badge></ItemEnd>
</Item>
);
}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. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-item.json --yesAdd the Goop Item to this project. The install steps are at https://goop.so/docs/install.mdimport { ItemReorderGroup, ItemHandle, ItemDescription, ItemLabels, ItemText, ItemActions } from '@/components/ui/goop/item';
import { Badge } from '@/components/ui/goop/badge';
import { Checkbox } from '@/components/ui/goop/checkbox';
import {
Item,
ItemContent,
ItemControl,
ItemEnd,
ItemGroup,
ItemMedia,
ItemOverlay,
ItemTitle,
} from '@/components/ui/goop/item';
const NOTES = [
{ id: 'drainage', title: 'North Field Drainage Plan', unread: true },
{ id: 'samples', title: 'Soil Samples Check-In', unread: false },
];
function NotesList() {
return (
<ItemGroup asChild>
<ul>
{NOTES.map((note) => (
<Item key={note.id} unread={note.unread} asChild>
<li>
<ItemOverlay asChild>
<a href={`/notes/${note.id}`} aria-labelledby={`note-${note.id}`} />
</ItemOverlay>
<ItemMedia variant="image">
<img src={`/notes/${note.id}/preview.png`} alt="" className="size-4" />
</ItemMedia>
<ItemContent>
<ItemTitle id={`note-${note.id}`}>{note.title}</ItemTitle>
</ItemContent>
</li>
</Item>
))}
</ul>
</ItemGroup>
);
}
function MeetingRow({ onOpen }: { onOpen: () => void }) {
return (
<Item variant="ghost" asChild>
<button type="button" onClick={onOpen}>
<ItemEnd>25 Nov 26</ItemEnd>
<ItemContent><ItemTitle>Seed Order Review</ItemTitle></ItemContent>
<Badge variant="tag">Note</Badge>
</button>
</Item>
);
}
function TodoRow({ onOpen }: { onOpen: () => void }) {
return (
<Item variant="todo">
<ItemOverlay aria-labelledby="todo-fence" onClick={onOpen} />
<ItemControl reveal={false}><Checkbox aria-labelledby="todo-fence" /></ItemControl>
<ItemContent><ItemTitle id="todo-fence">Walk the north fence line</ItemTitle></ItemContent>
<ItemEnd><Badge>Dec 2</Badge></ItemEnd>
</Item>
);
}ItemGroup round them (asChild on the caller's ul, each row asChild on an li); a row that opens its record holds an ItemOverlay on the record's link, named by its title. A line row is one line with no second line of words: its ItemDescription is the record's short id.| Option | Type | What it does |
|---|---|---|
| variant | default | ghost | line | todo | outline = default | |
| size | md | sm = md |
| Part | What it is |
|---|---|
| ItemGroup | A list of Item rows |
| ItemReorderGroup | A list the reader puts in order |
| ItemHandle | A row's drag handle, first in a row of an ItemReorderGroup |
| ItemOverlay | An invisible control over the whole row that makes it clickable; name it with aria-label |
| ItemControl | A row's selection slot (a line row's first) |
| ItemMedia | A tile or a picture at the row's start (in a list row a 28 px box it is centred in) |
| 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 |
| ItemDescription | The line under the title |
| ItemLabels | A row's labels (a Badge each, the caller's: variant="plain", the grey label chip), in its ItemContent after the title, as one run 6 px apart, each kept whole |
| 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 row's selection slot (a line row's first).
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.
import { ItemGroup } from '@/components/ui/goop/item';A row's drag handle, first in a row of an ItemReorderGroup.
import { ItemHandle } from '@/components/ui/goop/item';value.A row's labels (a Badge each, the caller's: variant="plain", the grey label chip), in its ItemContent after the title, as one run 6 px apart, each kept whole.
import { ItemLabels } from '@/components/ui/goop/item';A tile or a picture at the row's start (in a list row a 28 px box it is centred in).
import { ItemMedia } from '@/components/ui/goop/item';import { Item } from '@/components/ui/goop/item';ItemLabels after its title, never loose in ItemContent or ItemActions. A time or value that must stay whole on a phone goes in ItemEnd or ItemActions, which never shrink: the title is cut instead. A todo row holds an ItemOverlay that opens the to-do (named by its title), its Checkbox in an ItemControl reveal={false} (shown at rest, named by the title too), its title, then its marks and date chips (Badges, pack icons with a name) in one ItemEnd.value (the rows' ids, in order) and onValueChange, which every step of a move calls (render the rows in value's order, each keyed by its id); onValueCommit is called once when a move ends in a new order (save there). Each row holds an ItemHandle first, with its id and its title as label, and the list leaves 32 px of room before its rows for the handles (ps-8 on a holder). <ItemReorderGroup value={order} onValueChange={setOrder} onValueCommit={save} asChild><ul>{order.map((id) => <Item key={id} asChild><li><ItemHandle value={id} label={titles[id]} /><ItemContent><ItemTitle>{titles[id]}</ItemTitle></ItemContent></li></Item>)}</ul> </ItemReorderGroup>.<ItemActions><Button variant="outline" size="sm">Decline</Button><Button size="sm">Accept</Button></ItemActions>), never in a div of yours inside it or a second ItemActions.li, or the link or button the whole row is).ItemOverlay) are described as 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-labelledby is required.A list the reader puts in order.
import { ItemReorderGroup } from '@/components/ui/goop/item';ItemReorderMessages.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.
import { ItemTitle } from '@/components/ui/goop/item';| Key | What it does |
|---|---|
| Enter | Follow |
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 https://registry.goop.so/g/<link>/meadow-item.json --yesGoop makes design skills and React components for AI coding agents, so every screen your agent builds matches.