Install with your agent
npx shadcn@4.23.1 add @goop/meadow-page-bodyPage body
FreeThe area a page's content sits in, which sets how wide that content runs, for React and Tailwind CSS. Free, MIT.
What an agent sees
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>
);
}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.
Terminal
npx shadcn@4.23.1 add @goop/meadow-page-bodyPROMPT
Add the Goop Page body to this project. The install steps are at https://goop.so/docs/install.mdUsage
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 formvariant="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 takegutter="page". Anything else in a full body (a heading of the page's own, words) goes in adivwithpageRoles.insetand, first,pageRoles.top. - More on where it goes: page-body--options.md
- height, width, padding, gap: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| 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). |
- pageRoles
- Class recipes (cva): pageBodyVariants (PageBody)
- data-slot values (to select a part by): page-body, page-body-content
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.
goop.so/themes/meadow/components/page-body.md · the page as Markdown