---
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/"
---

# Record page

A record's page inside the app frame, such as a customer or a project, with its heading, facts and content, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `RecordPage`.

## When to use

- A record's page inside the app frame, such as a customer or a project, with its heading, facts and content.

## 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 Record 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-record-page.json --yes
```

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

## Usage

```tsx
import { RecordPage } from '@/components/goop/patterns/record-page';
import { TopBar, TopBarRow, TopBarGroup, TopBarTitle } from '@/components/ui/goop/top-bar';
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';
import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink } from '@/components/ui/goop/breadcrumb';
import { Button } from '@/components/ui/goop/button';
import { Prose } from '@/components/ui/goop/prose';
import { MetaFacts, MetaFactsItem, MetaFactsLabel, MetaFactsValue } from '@/components/ui/goop/meta-facts';

<RecordPage
  header={
    <TopBar role="banner">
      <TopBarRow>
        <TopBarGroup>
          <AppFrameTrigger />
          <TopBarTitle>Write the release notes</TopBarTitle>
        </TopBarGroup>
      </TopBarRow>
    </TopBar>
  }
  title="Write the release notes"
  trail={
    <Breadcrumb>
      <BreadcrumbList>
        <BreadcrumbItem>
          <BreadcrumbLink href="/projects">Projects</BreadcrumbLink>
        </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>
  }
  primaryAction={<Button>Mark as done</Button>}
  body={<Prose>Say what changed, who it helps and what anyone has to do.</Prose>}
  properties={
    <MetaFacts aria-label="State">
      <MetaFactsItem>
        <MetaFactsLabel>Status</MetaFactsLabel>
        <MetaFactsValue>In progress</MetaFactsValue>
      </MetaFactsItem>
    </MetaFacts>
  }
/>
```

- Fits: record (its recipe).
- `header` is the frame's top bar; the record's name as the page's heading is `title`. It spaces its own parts: a stack of cards in `body` or `properties` goes in one `flex flex-col` holder with `pageRoles.block`.
- height, width, padding, gap, border, text: add no class for these.

## API reference

### Options

- `header: ReactNode` — The page's top bar in the frame's panel, held over the page and never scrolled: the theme's TopBar, `role="banner"`.
- `title?: ReactNode` — The record's name as the page's one heading (an `h1`), first in the record's column over the body: its words.
- `titleMedia?: ReactNode` — What stands before the heading: a person's or team's Avatar (`size="lg"`, `aria-hidden`), or an Identity.
- `trail?: ReactNode` — Where the record sits, at the header row's start: the theme's Breadcrumb.
- `primaryAction?: ReactNode` — The page's one main action, at the header row's end (`profile`: under the person): the theme's Button.
- `body: ReactNode` — The record itself, first in the record's column: the theme's Prose (held to a reading measure), cards, tables.
- `properties?: ReactNode` — The record's facts: the theme's MetaFacts, in the side panel (`aside`), a band above the body (`column`), the header's band of key facts (`tabbed`) or the profile panel (`profile`).
- `activity?: ReactNode` — The record's history and the field to add to it, under the body: the theme's ActivityItem rows and Composer.
- `arrangement?: RecordPageArrangement`

## 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.
- [Breadcrumb](/themes/trail/components/breadcrumb): The row of links from the top of the app down to the current page, so a person can step back up a level.
- [Button](/themes/trail/components/button): A button with words that runs an action, in several looks and sizes.
