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

A page's body of two columns, a main one and a side one, inside the app frame's panel, for a dashboard or a form with a summary, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `PageColumns`.

## When to use

- A page's body of two columns, a main one and a side one, inside the app frame's panel, 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.

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

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

## Usage

```tsx
import { PageColumns } from '@/components/goop/patterns/page-columns';
import { PageHeader, PageHeaderContent, PageHeaderTitle } from '@/components/ui/goop/page-header';
import { Card, CardHeader, CardTitle, CardText, CardDescription } from '@/components/ui/goop/card';
import { Stat, StatValue } from '@/components/ui/goop/stat';

<PageColumns
  heading={
    <PageHeader>
      <PageHeaderContent>
        <PageHeaderTitle>November 2026</PageHeaderTitle>
      </PageHeaderContent>
    </PageHeader>
  }
  narrowFirst="aside"
  aside={
    <Card variant="outline">
      <CardHeader>
        <CardTitle>Due this week</CardTitle>
      </CardHeader>
    </Card>
  }
>
  <Card>
    <CardText>
      <CardDescription>Money in</CardDescription>
      <Stat>
        <StatValue>€48,200</StatValue>
      </Stat>
    </CardText>
  </Card>
</PageColumns>
```

- Fits: flow, overview (their recipes).
- width: add no class for these.

## API reference

### Options

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

## 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. Each column stacks its children 16 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.

## Related

- [Page header](/themes/trail/components/page-header): The title block that opens a page, with its page-level actions.
- [Card](/themes/trail/components/card): A framed surface that holds one piece of content or a list of settings rows.
- [Stat](/themes/trail/components/stat): A big figure with the word for what it counts, for a dashboard tile.
- [Settings page](/themes/trail/components/settings-page): A settings page inside the app frame's panel.
