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

The title block that opens a page, with its page-level actions, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `PageHeader`.

## Try it

Switch the look (default, divided, display), drop the description or the buttons, make the title long; narrow the window to see the buttons move.

The buttons only say they were pressed.

## When to use

- The title block that opens a page, with its page-level actions.

## 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 header 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>/meadow-page-header.json --yes
```

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

## Usage

```tsx
import { PageHeaderMedia } from '@/components/ui/goop/page-header';

import { Button } from '@/components/ui/goop/button';
import {
  PageHeader,
  PageHeaderActions,
  PageHeaderContent,
  PageHeaderDescription,
  PageHeaderTitle,
} from '@/components/ui/goop/page-header';

function SurveyPlanHeader({ onShare }: { onShare: () => void }) {
  return (
    <PageHeader variant="display">
      <PageHeaderContent>
        <PageHeaderTitle>North Ridge Survey Plan</PageHeaderTitle>
        <PageHeaderDescription>Route notes, permit forms and the crew contact list.</PageHeaderDescription>
      </PageHeaderContent>
      <PageHeaderActions>
        <Button variant="outline" onClick={onShare}>
          Share
        </Button>
      </PageHeaderActions>
    </PageHeader>
  );
}
```

- Fits: account, board, flow, list, overview, settings, states (their recipes).
- The `divided` bar keeps its own sides, 16 px: it spans its panel's whole width as the page's top bar. Open a note, an overview or a reading page with the `display` look; never a dense list. One per page: each block inside the page takes its own heading instead. Over a part that holds the room itself, write `spaced={false}`, never a margin class.
- height, width, padding, gap, corner, border, text: add no class for these.

## API reference

### Options

- `variant: default | divided | display = default`
- `spaced?: boolean = true` — Whether the header keeps its own space over and under it (the default: 12 px over and 24 px under the picture and display looks), or none (`false`: over a part that holds the room itself).
- `Defaults: variant = 'default'`

### Parts

- `PageHeaderMedia` — The picture box beside the words (`default`)
- `PageHeaderContent` — The words' column (`default`, beside the picture; `display`, beside the buttons)
- `PageHeaderTitle` — The header's title, an `h2`; its size is the header's variant's; takes asChild
- `PageHeaderDescription` — The words under the title (`default`, `display`)
- `PageHeaderActions` — The page's buttons at the row's end (every look)

- Class recipes (cva): pageHeaderVariants (PageHeader)
- data-slot values (to select a part by): page-header, page-header-actions, page-header-content, page-header-description, page-header-media, page-header-title

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

- [Button](/themes/meadow/components/button): A button with words that runs an action, in several looks and sizes, on a page, in a row or in a sidebar.
- [Section header](/themes/meadow/components/section-header): The title row over one block inside a page, with an optional count, description and actions, such as a settings section.
- [Toolbar](/themes/meadow/components/toolbar): A row of controls (a view's choice menus and its actions).
- [Resizable panel group](/themes/meadow/components/resizable): Panes a person resizes by dragging the handle between them, or with its keys.
