Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-section-header.json --yes

Section header

Pro

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

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.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-section-header.json --yes
PROMPT
Add the Goop Section header to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
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

Options
OptionTypeWhat 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 = falseDraw the theme's line under the whole row (off by default).
Parts
PartWhat it is
SectionHeaderTitleThe 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")
SectionHeaderDescriptionThe words under the title
SectionHeaderActionsThe 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; pick headingLevel={3} for a block inside a block, so the page's outline stays in order, and give it an id to 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.

goop.so/themes/meadow/components/section-header.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-section-header.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.