page-head
A plain page heading: a title and one line, with no actions.
{
"kind": "section",
"shell": {
"inset": "contained",
"density": "section"
},
"block": {
"type": "page-head",
"title": "No bench page here.",
"lede": "This worked example builds one bench in full, Kiln room 4. The other listings link here."
}
}
{
"title": "page-head",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "page-head"
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"lede": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"type",
"title"
],
"additionalProperties": false
}When to use
Use a page-head to title an inner page: terms, a contact page, a 404, a blog index with no list. It holds a title of 64 characters and a lede of 200, and nothing else.
A page that sells needs actions, so it opens on a hero. A listing in a directory opens on a product-head.
Write the title as the name of the page, and the lede as where the reader is and what to do next.
hero: the page opens with a claim and actions
The record
{
"kind": "section",
"shell": { "inset": "contained", "density": "section" },
"block": {
"type": "page-head",
"title": "No bench page here.",
"lede": "This worked example builds one bench in full, Kiln room 4. The other listings link here."
}
}Smallest that parses
{ "type": "page-head", "title": "No bench page here." }Fields and bounds
From @mdxui/site@7.0.0-alpha.0. A count reads as min–max × item; a string bound is its maximum length in characters, and links its refusal.
| Prop | Type and bound | Required |
|---|---|---|
title | string ≤64 | yes |
lede | string ≤200 | no |
Variants and counts
One layout: a title and an optional lede.
One record in five Themes
Shells
In three Businesses
Carried by the article and directory-list Templates. Seen on pages/benchlist/404.json, section 1.
Do and do not
"lede": "These terms cover every page of Harbor tides, every call to its API, every webhook it sends and every table it prints, and they apply from the first call, whichever plan you choose and whichever berth you ask about."Accessibility
| Check, on the exemplar render | Limit | Now | Pass |
|---|---|---|---|
| Skipped heading levels | 0 | 0 | yes |
| Unnamed nav landmarks | 0 | 0 of 0 | yes |
| Scroll regions a keyboard cannot reach | 0 | 0 of 0 | yes |
| Copy controls that announce the result | all | 0 of 0 | yes |
| Images and icons with no text alternative | 0 | 0 | yes |
Text pairs below AA across the 5 Themes and every scheme they emit: 5. See Render checks.
- Landmark The page-head sits first in
main. It adds no landmark. - Heading level The title renders as the page
h1. Use it instead of a hero, never beside one. - Focus order Nothing in it takes focus.