76 lines
1.6 KiB
Plaintext
76 lines
1.6 KiB
Plaintext
{
|
|
// Corresponds to CF_Link / Contentful_Link.ts
|
|
name: "link",
|
|
description: "Internal or external link with label and optional icon",
|
|
tags: ["navigation", "component"],
|
|
category: "components",
|
|
fields: {
|
|
name: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Internal link name",
|
|
},
|
|
internal: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Internal key",
|
|
},
|
|
linkName: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Display name (e.g. in navigation)",
|
|
},
|
|
url: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Target URL",
|
|
},
|
|
icon: {
|
|
type: "string",
|
|
description: "Icon identifier",
|
|
},
|
|
color: {
|
|
type: "string",
|
|
description: "Color (e.g. for buttons)",
|
|
},
|
|
newTab: {
|
|
type: "boolean",
|
|
default: false,
|
|
description: "Open in new tab",
|
|
},
|
|
external: {
|
|
type: "boolean",
|
|
default: false,
|
|
description: "External link",
|
|
},
|
|
description: {
|
|
type: "string",
|
|
description: "Description",
|
|
},
|
|
alt: {
|
|
type: "string",
|
|
description: "Alt text (e.g. for icon)",
|
|
},
|
|
showText: {
|
|
type: "boolean",
|
|
default: true,
|
|
description: "Show text",
|
|
},
|
|
author: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Author (e.g. for sources)",
|
|
},
|
|
date: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Date (e.g. publication)",
|
|
},
|
|
source: {
|
|
type: "string",
|
|
required: true,
|
|
description: "Source",
|
|
},
|
|
},
|
|
}
|