npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-list-page.json --yesList page
ProA list page with its heading, views, filters and collection, in the frame's panel, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
import { ListPage } from '@/components/goop/patterns/list-page';
import { TopBar, TopBarRow, TopBarGroup, TopBarTitle } from '@/components/ui/goop/top-bar';
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';
import { PageHeader, PageHeaderTitle } from '@/components/ui/goop/page-header';
import { SearchInput } from '@/components/ui/goop/search-input';
import { Button, ButtonIcon, ButtonLabel } from '@/components/ui/goop/button';
import { Table, TableHeader, TableRow, TableHead, TableBody } from '@/components/ui/goop/table';
import { TableCellLabel, TableCell } from '@/components/ui/goop/table-cell';
<ListPage
header={
<TopBar role="banner">
<TopBarRow>
<TopBarGroup>
<AppFrameTrigger />
<TopBarTitle>Platform</TopBarTitle>
</TopBarGroup>
</TopBarRow>
</TopBar>
}
heading={
<PageHeader>
<PageHeaderTitle>Tasks</PageHeaderTitle>
</PageHeader>
}
filters={<SearchInput label="Search tasks" placeholder="Search tasks" />}
primaryAction={
<Button>
<ButtonIcon icon="plus" />
<ButtonLabel>New task</ButtonLabel>
</Button>
}
collection={
<Table columns="minmax(240px, 1fr)" gutter="page">
<TableHeader>
<TableRow>
<TableHead>
<TableCellLabel>Task</TableCellLabel>
</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{['Write the release notes', 'Plan the field day'].map((title) => (
<TableRow key={title}>
<TableCell>
<TableCellLabel>{title}</TableCellLabel>
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
}
/>When to use
- A list page with its heading, views, filters and collection, in the frame's panel.
Installation
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 List page 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>/trail-list-page.json --yesAdd the Goop List page to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { ListPage } from '@/components/goop/patterns/list-page';
import { TopBar, TopBarRow, TopBarGroup, TopBarTitle } from '@/components/ui/goop/top-bar';
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';
import { PageHeader, PageHeaderTitle } from '@/components/ui/goop/page-header';
import { SearchInput } from '@/components/ui/goop/search-input';
import { Button, ButtonIcon, ButtonLabel } from '@/components/ui/goop/button';
import { Table, TableHeader, TableRow, TableHead, TableBody } from '@/components/ui/goop/table';
import { TableCellLabel, TableCell } from '@/components/ui/goop/table-cell';
<ListPage
header={
<TopBar role="banner">
<TopBarRow>
<TopBarGroup>
<AppFrameTrigger />
<TopBarTitle>Platform</TopBarTitle>
</TopBarGroup>
</TopBarRow>
</TopBar>
}
heading={
<PageHeader>
<PageHeaderTitle>Tasks</PageHeaderTitle>
</PageHeader>
}
filters={<SearchInput label="Search tasks" placeholder="Search tasks" />}
primaryAction={
<Button>
<ButtonIcon icon="plus" />
<ButtonLabel>New task</ButtonLabel>
</Button>
}
collection={
<Table columns="minmax(240px, 1fr)" gutter="page">
<TableHeader>
<TableRow>
<TableHead>
<TableCellLabel>Task</TableCellLabel>
</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{['Write the release notes', 'Plan the field day'].map((title) => (
<TableRow key={title}>
<TableCell>
<TableCellLabel>{title}</TableCellLabel>
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
}
/>- Fits: board, list, states (their recipes).
- It draws its own AppFramePanel and PageBody: put it straight in AppFrame beside AppFrameRail, with no PageBody or AppFramePanel of yours round it or inside its slots.
- height, width, padding, gap, border: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| header | ReactNode | The page's top bar, in the frame panel's header: the theme's TopBar, role="banner". |
| heading? | ReactNode | The block that names the page, at the header's start: the theme's PageHeader. |
| views? | ReactNode | The views the collection can be seen in: the theme's TabsList, after the heading; views-column, the page's saved views in a column at its start, the quiet TabsList (variant="ghost") of vertical Tabs (orientation="vertical"), each view as wide as the column. |
| filters? | ReactNode | What narrows the list: a SearchInput, Selects and the FilterChips in force, side by side. |
| primaryAction? | ReactNode | The page's one main action, the last control at the header's end: the theme's Button. |
| secondaryActions? | ReactNode | The page's other actions, just before the main one: a MenuButton with its menu, IconButtons. |
| collection | ReactNode | |
| record? | ReactNode | The open record's panel: the theme's RecordPeekPanel, a RecordPeekHeader and a RecordPeekBody in it. |
| peek? | Omit<RecordPeekProps, 'children'> | The RecordPeek's own props: open, onOpenChange, records, value, onValueChange, onOpenRecord, the full page (href or onExpand), storageKey, and mode: peek (the default) in the panel beside the list, page straight to the record's full page (then no record is needed). |
| arrangement? | ListPageArrangement | The contract's arrangement: filtered, the filters on a row of their own under the header; plain, the filters at the end of the header's second line; views-column, filtered beside a column of the saved views; centred, drawn as plain today. |
- data-slot values (to select a part by): list-page, list-page-actions, list-page-content, list-page-control-row, list-page-filters, list-page-header, list-page-main, list-page-title, list-page-title-row, list-page-toolbar, list-page-views
Notes for AI
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.