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

stats

A band of three or four big numbers with captions, ruled between cells.

View as JSON

Seen on pages/home.json, the landing, section 2.

Count
From the landingcertificateOpen the frame
pages/home.json, section 2
{
  "kind": "band",
  "shell": { "inset": "contained", "density": "compact" },
  "block": {
    "type": "stats",
    "items": [
      { "value": "27", "label": "Section types, drawn once by hand" },
      { "value": "64", "label": "Characters a hero title holds" },
      { "value": "7 KB", "label": "One record, this whole page" }
    ]
  }
}

Smallest that parses

{
  "type": "stats",
  "items": [
    { "value": "27", "label": "Section types, drawn once by hand" },
    { "value": "64", "label": "Characters a hero title holds" },
    { "value": "7 KB", "label": "One record, this whole page" }
  ]
}

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.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
items3–4 × objectyes
items[].valuestring ≤6yes
items[].labelstring ≤72yes
items[].iconicon or mark name (52)no

Use instead

  • facts: labels and values a reader decides on