components/elements/Headline/schema.jsjavascript
/**
* Content-block contract of the "headline" element (see StoryTitle/schema.js
* for the pattern). `level` replaces the legacy "subheadline" type:
* level 2 (default) is the slide headline, level 3 the subheadline.
*/
export default {
type: "headline",
region: "headline",
required: ["text"],
properties: {
text: { type: "string" },
level: { type: "integer", minimum: 1, maximum: 6 },
},
};