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

compare

Two columns side by side: what the old way costs and what this one gives.

View as JSON

Carried by the api-product Template. Seen on pages/harbor/home.json, section 8.

From Harbor tides › homequaypointOpen the frame
pages/harbor/home.json, section 8
{
  "kind": "section",
  "shell": { "inset": "contained", "density": "section" },
  "block": {
    "type": "compare",
    "head": { "eyebrow": "Against station tables", "title": "The berth, not the nearest station." },
    "cons": {
      "label": "Station tables",
      "items": ["Heights at the station", "One PDF per month", "Datum in the small print", "Math done by hand"]
    },
    "pros": {
      "label": "Harbor tides",
      "items": ["Heights at the berth", "Fourteen days per call", "Datum on every height", "The window computed"]
    }
  }
}

Smallest that parses

{
  "type": "compare",
  "head": { "eyebrow": "Against station tables", "title": "The berth, not the nearest station." },
  "cons": {
    "label": "Station tables",
    "items": ["Heights at the station"]
  },
  "pros": {
    "label": "Harbor tides",
    "items": ["Heights at the berth"]
  }
}

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
consobjectyes
cons.labelstring ≤24yes
cons.items1–8 × string ≤56yes
prosobjectyes
pros.labelstring ≤24yes
pros.items1–8 × string ≤56yes

Use instead