Files
rustycms/types/headline.json5
Peter Meier 4de99db670
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Track all types in git, sync to server on deploy
2026-03-15 14:38:37 +01:00

38 lines
891 B
Plaintext

{
// Corresponds to CF_ComponentHeadline / Contentful_Headline.ts
name: "headline",
description: "Headline component with optional layout",
tags: ["component", "layout"],
category: "components",
fields: {
internal: {
type: "string",
required: true,
description: "Internal key",
},
text: {
type: "string",
required: true,
description: "Headline text",
},
tag: {
type: "string",
required: true,
enum: ["h1", "h2", "h3", "h4", "h5", "h6"],
default: "h2",
description: "HTML tag for headline",
},
layout: {
type: "object",
useFields: "component_layout",
description: "Column width (grid) like CF_ComponentLayout",
},
align: {
type: "string",
enum: ["left", "center", "right"],
default: "left",
description: "Text alignment",
},
},
}