Alpha: Ships on npm at 7.0.0-alpha.07.0.0-alpha.0
text-stack
Copy beside a column of ruled, titled paragraphs.
Carried by the api-product and blog Templates. Seen on pages/harbor/home.json, section 10.
Variant
{
"kind": "section",
"shell": {
"inset": "contained",
"density": "section"
},
"block": {
"type": "text-stack",
"layout": "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."
}
]
}
}
{
"title": "text-stack",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text-stack"
},
"head": {
"type": "object",
"properties": {
"eyebrow": {
"type": "string",
"minLength": 1,
"maxLength": 28
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 72
},
"lede": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"max": {
"type": "string",
"pattern": "^(none|\\d+(\\.\\d+)?(em|ch|px))$"
},
"ledeMax": {
"type": "string",
"pattern": "^(none|\\d+(\\.\\d+)?(em|ch|px))$"
},
"balance": {
"type": "boolean"
},
"scale": {
"type": "string",
"enum": [
"compact",
"large"
]
},
"tag": {
"type": "string",
"minLength": 1,
"maxLength": 8
},
"layout": {
"type": "string",
"enum": [
"split"
]
}
},
"required": [
"eyebrow"
],
"additionalProperties": false
},
"layout": {
"type": "string",
"enum": [
"stack",
"grid"
]
},
"items": {
"minItems": 3,
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 28
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"href": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"title",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"type",
"head",
"items"
],
"additionalProperties": false
}{
"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.
| Prop | Type and bound | Required |
|---|---|---|
head | object | yes |
head.eyebrow | string ≤28 | yes |
head.title | string ≤72 | no |
head.lede | string ≤300 | no |
head.max | string (pattern) | no |
head.ledeMax | string (pattern) | no |
head.balance | boolean | no |
head.scale | "compact" | "large" | no |
head.tag | string ≤8 | no |
head.layout | "split" | no |
layout | "stack" | "grid" | no |
items | 3–6 × object | yes |
items[].title | string ≤28 | yes |
items[].text | string ≤160 | yes |
items[].href | string ≤160 | no |