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
Work
Selected work
<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
- 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 build the head from Eyebrow, Display and a paragraph by hand.
- Don't put more than two actions in the head.
Anatomy
- labelEyebrow, md size.
- titleDisplay as h1.
- bodyLead in secondary body type, at most layout.narrow wide.
- actionsButtons or links below the lead.
Examples
Portfolio page
Work
Selected work
Application screen
Settings
Team
Props
| Name | Type | Default | Description |
|---|---|---|---|
| title (required) | ReactNode | – | The page title, the h1; may contain one Highlight. |
| eyebrow | string | – | Section or context of the page. |
| lead | ReactNode | – | One or two sentences, kept to reading width. |
| actions | ReactNode | – | 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). |
| status | ReactNode | – | State of the object next to the title: a Pill or StatusDot with its word. |
Tokens used
| Token | Tier | Value | Utility |
|---|---|---|---|
| section.paddingTop.desktop | component | 128px | |
| section.paddingTop.mobile | component | 56px | |
| layout.narrow | semantic | 720px | |
| spacing.12 | semantic | 48px | |
| spacing.3 | semantic | 12px | |
| spacing.4 | semantic | 16px | |
| spacing.6 | semantic | 24px | |
| spacing.region | semantic | 48px | |
| text.secondary | semantic | #555555 | |
| type.lead.size | semantic | 18px |
Accessibility
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- The title is the page's only h1.