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

terminal

The code window: dark in every Theme and scheme, plain or tabbed.

View as JSON

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

Variant
From the landingcertificateOpen the frame
pages/home.json, section 3
{
  "kind": "section",
  "shell": { "id": "bound", "inset": "contained", "density": "section", "surface": "plate" },
  "block": {
    "type": "terminal",
    "variant": "plain",
    "title": "Titles stop at 64.",
    "lang": "js",
    "lines": [
      "const hero = page.sections[1].block;",
      "hero.title = 'A truly stunning, '",
      "  + 'beautiful and modern page '",
      "  + 'for every brand you launch.';",
      "const [{ path, maximum }] = PageSchema",
      "  .safeParse(page).error.issues;",
      "// path: sections.1.block.title",
      "// maximum: 64",
      "hero.title = 'One record. Every brand.';",
      "PageSchema.safeParse(page).success;",
      "// true"
    ],
    "copy": false
  }
}

Smallest that parses

{
  "type": "terminal",
  "variant": "plain",
  "title": "Titles stop at 64.",
  "lines": ["const hero = page.sections[1].block;"]
}

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.

variant: "plain"

PropType and boundRequired
variant"plain"yes
titlestring ≤48no
langicon or mark name (44)no
lines1–32 × string ≤100yes
copybooleanno

variant: "tabs"

PropType and boundRequired
variant"tabs"yes
titlestring ≤48no
groupstring (pattern)yes
tabs1–4 × objectyes
tabs[].labelstring ≤6yes
tabs[].lines1–24 × object | object | object | object | objectyes
tabs[].lines[].cmdstring ≤64yes
tabs[].lines[].space"after" | "both"no
tabs[].lines[].row[string ≤16, string ≤56]yes
tabs[].lines[].outstring ≤64yes
tabs[].lines[].cursorbooleanno
tabs[].lines[].gap"sm" | "lg"yes
tabs[].lines[].textstring ≤128yes
tabs[].prebooleanno
copybooleanno

Use instead