npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-section-header.json --yesSection header
ProThe title row over one block inside a page, with an optional count, description and actions, such as a settings section, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- SectionHeaderTitleThe block's title, a heading (
h2unlessheadingLevelsays otherwise), and its optionalcountafter its last word - SectionHeaderDescriptionThe words under the title
- SectionHeaderActionsThe block's buttons at the row's end
import { Button } from '@/components/ui/goop/button';
import {
SectionHeader,
SectionHeaderActions,
SectionHeaderDescription,
SectionHeaderTitle,
} from '@/components/ui/goop/section-header';
function FieldNotes() {
return (
<section aria-labelledby="notes-title" className="flex flex-col gap-4">
<SectionHeader>
<SectionHeaderTitle id="notes-title" count="8">
Field notes
</SectionHeaderTitle>
<SectionHeaderDescription>Notes the crew filed this week</SectionHeaderDescription>
<SectionHeaderActions>
<Button variant="outline">Export</Button>
<Button>New note</Button>
</SectionHeaderActions>
</SectionHeader>
<SectionHeader size="sm" separator>
<SectionHeaderTitle headingLevel={3} count="3 waiting">
Pending reviews
</SectionHeaderTitle>
</SectionHeader>
</section>
);
}Pick a look (the title alone, the full row, the small row, a long title) or switch the size, the rule under it and the title’s level; change or clear the count; take away the description or the buttons. The buttons do nothing.
When to use
- The title row over one block inside a page, with an optional count, description and actions, such as a settings section.
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 Section 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-section-header.json --yesAdd the Goop Section header to this project. The install steps are at https://goop.so/docs/install.mdUsage
import { Button } from '@/components/ui/goop/button';
import {
SectionHeader,
SectionHeaderActions,
SectionHeaderDescription,
SectionHeaderTitle,
} from '@/components/ui/goop/section-header';
function FieldNotes() {
return (
<section aria-labelledby="notes-title" className="flex flex-col gap-4">
<SectionHeader>
<SectionHeaderTitle id="notes-title" count="8">
Field notes
</SectionHeaderTitle>
<SectionHeaderDescription>Notes the crew filed this week</SectionHeaderDescription>
<SectionHeaderActions>
<Button variant="outline">Export</Button>
<Button>New note</Button>
</SectionHeaderActions>
</SectionHeader>
<SectionHeader size="sm" separator>
<SectionHeaderTitle headingLevel={3} count="3 waiting">
Pending reviews
</SectionHeaderTitle>
</SectionHeader>
</section>
);
}- Also known as: SectionHeading, SectionTitle, Subheader.
- width, padding, gap, border, text: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| size? | 'md' | 'sm' = 'md' | md a 20 px title over a page's block; sm a 13 px title over a smaller block. |
| separator? | boolean = false | Draw the theme's line under the whole row (off by default). |
| Part | What it is |
|---|---|
| SectionHeaderTitle | The block's title, a heading (h2 unless headingLevel says otherwise), and its optional count after its last word; headingLevel?: 2 | 3 | 4 | 5 | 6 = 2 — The heading's level: 2 (the default) for a page's block, 3 or 4 for a block inside one; count?: ReactNode — How many the block holds, after the title on its line: a number, or words where a number is unclear ("8 open") |
| SectionHeaderDescription | The words under the title |
| SectionHeaderActions | The block's buttons at the row's end |
- data-slot values (to select a part by): section-header, section-header-actions, section-header-actions-line, section-header-actions-list, section-header-count, section-header-description, section-header-title, section-header-title-line
Responsive behaviour
- Put a SectionHeader over each block inside a page, between the page's header and the content: "Members" over a table, "Pending invites" over a list. Not the page's top (PageHeader), not a card's title (CardHeader), not the bar between the groups of ONE list (ListGroupHeader). Its title is an
h2; pickheadingLevel={3}for a block inside a block, so the page's outline stays in order, and give it anidto name a<section aria-labelledby>round the block. On a phone the buttons go under the words; on a touch screen each is a 44 px tap target by itself.
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.