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

text-stack

Copy beside a column of ruled, titled paragraphs.

View as JSON

Carried by the api-product and blog Templates. Seen on pages/harbor/home.json, section 10.

Variant
From Harbor tides › homequaypointOpen the frame
pages/harbor/home.json, section 10
{
  "kind": "section",
  "shell": { "inset": "contained", "density": "section" },
  "block": {
    "type": "text-stack",
    "head": { "eyebrow": "Where the numbers come from", "title": "Charted, measured, named." },
    "layout": "stack",
    "items": [
      { "title": "Charted depth", "text": "Each berth carries the depth from the latest harbor survey." },
      { "title": "Measured tide", "text": "Predictions are corrected every 6 minutes from the harbor gauge." },
      { "title": "Named datum", "text": "Every height says which datum it stands on." }
    ]
  }
}

Smallest that parses

{
  "type": "text-stack",
  "head": { "eyebrow": "Where the numbers come from", "title": "Charted, measured, named." },
  "items": [
    { "title": "Charted depth", "text": "Each berth carries the depth from the latest harbor survey." },
    { "title": "Measured tide", "text": "Predictions are corrected every 6 minutes from the harbor gauge." },
    { "title": "Named datum", "text": "Every height says which datum it stands on." }
  ]
}

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
headobjectyes
head.eyebrowstring ≤28yes
head.titlestring ≤72no
head.ledestring ≤300no
head.maxstring (pattern)no
head.ledeMaxstring (pattern)no
head.balancebooleanno
head.scale"compact" | "large"no
head.tagstring ≤8no
head.layout"split"no
layout"stack" | "grid"no
items3–6 × objectyes
items[].titlestring ≤28yes
items[].textstring ≤160yes
items[].hrefstring ≤160no

Use instead

  • steps: the paragraphs run in order
  • faq: each paragraph answers a question