components/elements/CardGrid/schema.jsjavascript
/** Content-block contract of the "cardGrid" element (pattern: StoryTitle/schema.js). */
export default {
type: "cardGrid",
region: "content",
required: [],
properties: {
stats: {
type: "array",
items: {
type: "object",
required: ["value", "label"],
additionalProperties: false,
properties: {
value: { type: "string" },
label: { type: "string" },
},
},
},
highlight: {
type: "object",
required: ["headline", "text"],
additionalProperties: false,
properties: {
headline: { type: "string" },
text: { type: "string" },
},
},
},
};