npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-page-columns.json --yesPage columns
ProA 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, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
import { Card, CardDescription, CardHeader, CardTitle } from '@/components/ui/goop/card';
import { PageHeader, PageHeaderContent, PageHeaderTitle } from '@/components/ui/goop/page-header';
import { PageColumns } from '@/components/goop/patterns/page-columns';
function SitePage() {
return (
<PageColumns
heading={
<PageHeader variant="display">
<PageHeaderContent>
<PageHeaderTitle asChild>
<h1>North hedge</h1>
</PageHeaderTitle>
</PageHeaderContent>
</PageHeader>
}
narrowFirst="aside"
aside={
<Card variant="outline">
<CardHeader>
<CardTitle>Due this week</CardTitle>
<CardDescription>Plant the first 60 saplings</CardDescription>
</CardHeader>
</Card>
}
>
<Card variant="outline">
<CardHeader>
<CardTitle>Tasks</CardTitle>
<CardDescription>Four open, one done</CardDescription>
</CardHeader>
</Card>
</PageColumns>
);
}When to use
- 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.
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 columns 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>/meadow-page-columns.json --yesAdd the Goop Page columns to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { Card, CardDescription, CardHeader, CardTitle } from '@/components/ui/goop/card';
import { PageHeader, PageHeaderContent, PageHeaderTitle } from '@/components/ui/goop/page-header';
import { PageColumns } from '@/components/goop/patterns/page-columns';
function SitePage() {
return (
<PageColumns
heading={
<PageHeader variant="display">
<PageHeaderContent>
<PageHeaderTitle asChild>
<h1>North hedge</h1>
</PageHeaderTitle>
</PageHeaderContent>
</PageHeader>
}
narrowFirst="aside"
aside={
<Card variant="outline">
<CardHeader>
<CardTitle>Due this week</CardTitle>
<CardDescription>Plant the first 60 saplings</CardDescription>
</CardHeader>
</Card>
}
>
<Card variant="outline">
<CardHeader>
<CardTitle>Tasks</CardTitle>
<CardDescription>Four open, one done</CardDescription>
</CardHeader>
</Card>
</PageColumns>
);
}- width, gap: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| heading? | ReactNode | The page's heading, across both columns and over them: the theme's PageHeader. |
| aside? | ReactNode | What stands beside the main column, at the pane-sm width: the theme's Cards, a feed, a summary. |
| side? | 'start' | 'end' | Where the side column sits: the row's end or its start (the theme's default: end), before or after the main. |
| fold? | 'below' | 'sheet' | On a narrow window the side column goes below the main column (the default; over it at the start), or into a sheet that a button opens. |
| narrowFirst? | 'main' | 'aside' | With fold="below": the column that comes first when the row folds into one column, the main one or the aside; the default is the row's reading order (the side column first only at the start). |
| asideLabel? | string = 'More' | The words of the button that opens the side column, and its sheet's title, where the column folds into a sheet. |
| container? | HTMLElement | null | With fold="sheet": where the side column's sheet is drawn; the end of <body> when left out. |
- data-slot values (to select a part by): page-columns, page-columns-main, page-columns-panel, page-columns-row, page-columns-sheet
Responsive behaviour
- An aside of what is due or a to-do takes narrowFirst="aside", so a phone shows it first; a summary or a feed keeps the default. The body brings Meadow's 40 px sides and 56 px top edge, and holds the main column to the 716 px reading column: write no padding, margin or width of your own round it. Each column stacks its children 12 px apart: pass the cards themselves (a fragment for
aside), with no holder or gap of your own.
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.