---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# List page

A list page with its heading, views, filters and collection, in the frame's panel, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `ListPage`.

## 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.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-list-page.json --yes
```

```text
Add the Goop List page to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
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

### Options

- `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.

## 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.

## Related

- [Top bar](/themes/trail/components/top-bar): The bar across the top of a page in the app frame, with its title, tabs and actions.
- [App frame](/themes/trail/components/app-frame): The window every page of the app sits in, with the navigation at its side and the top bar over the page.
- [Page header](/themes/trail/components/page-header): The title block that opens a page, with its page-level actions.
- [Search input](/themes/trail/components/search-input): A search field with the search icon at its start, for narrowing a list or a page.
