Skip to content

Layout

PageHead

The head of a screen: eyebrow, h1, a lead at reading width and optional actions.

  • Experimental
  • No keyboard interaction
  • Screen reader not tested yet

Playground

Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.

Work

Selected work

Four projects where the same theme appeared in different variations.
tsx
<PageHead
  eyebrow="Work"
  title="Selected work"
  lead="Four projects where the same theme appeared in different variations."
  as="h2"
/>

Usage

When to use

Use PageHead as the first element of every screen: the page's eyebrow, its h1, a lead and, if needed, one or two actions.

When not to use

  • For the head of a docs page: the docs site has its own.
  • For a section inside the page: use Section with Eyebrow and Heading.

How it works

Eyebrow, Display as h1 with an optional status next to it, the lead and the actions. The lead never runs wider than the reading width, however wide the page is. size lg is the editorial head: it brings its own Container and the section rhythm on top, and the first Section after it goes without its hairline. size md is the product head inside AppShell: no Container of its own, because the shell brings the gutters, and region spacing on top.

Content guidelines

The title names the page in a few words, with one Highlight if it carries a point. The lead says what the page holds in one or two sentences.

Do and don’t

Do
  • Start every screen with PageHead, then its Sections (lg) or regions (md).
  • Put the state of a detail page's object in status, not in lead.
  • Let the first Section after it go without the hairline (divider={false}).
Don’t
  • Don't build the head from Eyebrow, Display and a paragraph by hand.
  • Don't put more than two actions in the head.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. labelEyebrow, md size.
  2. titleDisplay as h1.
  3. bodyLead in secondary body type, at most layout.narrow wide.
  4. actionsButtons or links below the lead.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { PageHead } from "@/ds";

Portfolio page

Work

Selected work

Four projects where the same core theme appeared in different variations: making complex structures accessible to different stakeholders.

Application screen

Settings

Team

People with access to this workspace.

Props

Checked against the component's TypeScript type on every build.
PageHead props
NameTypeDefaultDescription
title (required)ReactNode–The page title, the h1; may contain one Highlight.
eyebrowstring–Section or context of the page.
leadReactNode–One or two sentences, kept to reading width.
actionsReactNode–One or two Buttons or Links.
as"h1" | "h2""h1"h1 on a screen; h2 only for a preview inside another page.
size"lg" | "md""lg"lg for editorial pages (own Container, section rhythm); md for product screens inside AppShell (no Container, region spacing).
statusReactNode–State of the object next to the title: a Pill or StatusDot with its word.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by PageHead
TokenTierValueUtility
section.paddingTop.desktopcomponent128px
section.paddingTop.mobilecomponent56px
layout.narrowsemantic720px
spacing.12semantic48px
spacing.3semantic12px
spacing.4semantic16px
spacing.6semantic24px
spacing.regionsemantic48px
text.secondarysemantic#555555
type.lead.sizesemantic18px

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot tested yet

Semantics and focus

  • The title is the page's only h1.