npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-page-header.json --yesPage header
ProThe title block that opens a page, with its page-level actions, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- PageHeaderMediaThe picture box beside the words (
default) - PageHeaderContentThe words' column (
default, beside the picture - PageHeaderTitleThe header's title, an
h2 - PageHeaderDescriptionThe words under the title (
default,display) - PageHeaderActionsThe page's buttons at the row's end (every look)
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>
);
}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.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-page-header.json --yesAdd the Goop Page header to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
dividedbar 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 thedisplaylook; 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, writespaced={false}, never a margin class. - height, width, padding, gap, corner, border, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| 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' |
| Part | What it is |
|---|---|
| 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.