Alpha: Ships on npm at 7.0.0-alpha.07.0.0-alpha.0

article

A reading page: an optional head and share bar, then the body as prose.

View as JSON

Carried by the article and post Templates. Seen on pages/harbor/terms.json, section 1.

From Harbor tides › termsquaypointOpen the frame
pages/harbor/terms.json, section 1
{
  "kind": "article",
  "shell": { "inset": "article", "density": "article" },
  "block": {
    "type": "article",
    "head": { "title": "Terms" },
    "body": "Harbor tides is a worked example. It shows a whole Site rendered by `@mdxui/site`, and it sells nothing.\n\n## The data\n\nEvery tide on these pages is invented. Never plan a passage from it.\n\n## The records\n\nEach page of this Site is a JSON record served beside its render. Copy any record and rewrite it for your own Business."
  }
}

Smallest that parses

{
  "type": "article",
  "body": "Harbor tides is a worked example. It shows a whole Site rendered by `@mdxui/site`, and it sells nothing.\n\n## The data\n\nEvery tide on these pages is invented. Never plan a passage from it.\n\n## The records\n\nEach page of this Site is a JSON record served beside its render. Copy any record and rewrite it for your own Business."
}

Props

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.

PropType and boundRequired
headobjectno
head.backobjectno
head.back.hrefstring ≤160yes
head.back.labelstring ≤16yes
head.tagstring ≤20no
head.datelineobjectno
head.dateline.datestring (pattern)yes
head.dateline.readobjectno
head.titlestring ≤80yes
head.dekstring ≤360no
shareobjectno
share.urlstring ≤160yes
share.titlestring ≤80yes
share.labelstring ≤16yes
share.on1–5 × "reddit" | "x" | "linkedin" | "bluesky" | "hackernews"yes
bodystring ≤12000yes
copybooleanno

Use instead