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

# Page body

The area a page's content sits in, which sets how wide that content runs, for React and Tailwind CSS. Free, MIT.

Free. Its export: `PageBody`.

## When to use

- The area a page's content sits in, which sets how wide that content runs.

## 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 Page body on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

```sh
npx shadcn@4.23.1 add @goop/meadow-page-body
```

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

## Usage

```tsx
import { pageRoles } from '@/components/goop/patterns/page-body';

import {
  PageHeader,
  PageHeaderContent,
  PageHeaderDescription,
  PageHeaderTitle,
} from '@/components/ui/goop/page-header';
import { Prose } from '@/components/ui/goop/prose';
import { PageBody } from '@/components/goop/patterns/page-body';

function SurveyNote() {
  return (
    <PageBody variant="wide">
      <PageHeader variant="display">
        <PageHeaderContent>
          <PageHeaderTitle asChild>
            <h1>North Ridge Survey</h1>
          </PageHeaderTitle>
          <PageHeaderDescription>Route notes and the crew list.</PageHeaderDescription>
        </PageHeaderContent>
      </PageHeader>
      <Prose>Meet at the barn at nine; the bridge timber arrives on Friday.</Prose>
    </PageBody>
  );
}
```

- Fits: account, app, chat, flow, overview, record, schedule, states (their recipes).
- A note, a collection or an empty state takes `variant="wide"`, a form `variant="column"`: the body brings the 40 px sides and the 56 px top edge, so the first part (a display PageHeader, the title) starts where every Meadow page's does; write no padding, margin or width of your own round it. Its children stand a section apart: write no margin between them; `spaced={false}` where one holder of your own spaces them. A calendar's week, a table or a board takes the default body (its parts run to the page's foot); cards or a board with an edge of their own take `gutter="page"`. Anything else in a full body (a heading of the page's own, words) goes in a `div` with `pageRoles.inset` and, first, `pageRoles.top`.
- More on where it goes: page-body--options.md
- height, width, padding, gap: add no class for these.

## API reference

### Options

- `variant: default | column | wide = default`
- `align?: 'center' | 'start' = 'center'` — Where a column or a wide body sits: centred in the page (`center`, the default), or on the page gutter at the page's start edge (`start`), the column narrowing from its end.
- `gutter?: 'none' | 'page' = 'none'` — The full body's gutter: none (`none`, the default: its parts span the page and bring their own), or the page gutter (`page`: 40 px at the sides and 32 px under the last part) round parts with an edge of their own, cards or a board.
- `spaced?: boolean = true` — Whether the body's children stand a section apart (32 px, the layout's section rhythm; the default), or as they come (`false`, where a holder of your own spaces them).

### PageBody: every option

```tsx
import { PageBody } from '@/components/goop/patterns/page-body';
```

### Compose

- Your own glue between parts takes `pageRoles`, never a spacing step of its own.

### Options

- variant: default (default), column, wide
- align?: 'center' | 'start' = 'center' — Where a column or a wide body sits: centred in the page (`center`, the default), or on the page gutter at the page's start edge (`start`), the column narrowing from its end.
- gutter?: 'none' | 'page' = 'none' — The full body's gutter: none (`none`, the default: its parts span the page and bring their own), or the page gutter (`page`: 40 px at the sides and 32 px under the last part) round parts with an edge of their own, cards or a board.
- spaced?: boolean = true — Whether the body's children stand a section apart (32 px, the layout's section rhythm; the default), or as they come (`false`, where a holder of your own spaces them).

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

- [Page header](/themes/meadow/components/page-header): The title block that opens a page, with its page-level actions.
- [Prose](/themes/meadow/components/prose): A block of running text set for reading, one paragraph or several, for a description, an article, a note or a help page.
- [Page columns](/themes/meadow/components/page-columns): A page's body of two columns, a main one and a side one, inside the app frame's page, for a dashboard or a form with a summary.
- [Settings page](/themes/meadow/components/settings-page): A settings page that covers the app, with a close control at its top end.
