34 lines
578 B
TypeScript
34 lines
578 B
TypeScript
import type { ElementConfig } from "./types"
|
|
|
|
export const CardConfig: ElementConfig = {
|
|
Card: {
|
|
label: "Card",
|
|
fields: {
|
|
image: {
|
|
type: "text",
|
|
label: "Image URL",
|
|
},
|
|
title: {
|
|
type: "text",
|
|
label: "Title",
|
|
},
|
|
subtitle: {
|
|
type: "text",
|
|
label: "Subtitle",
|
|
},
|
|
tags: {
|
|
type: "array",
|
|
label: "Tags",
|
|
arrayFields: {
|
|
tag: {
|
|
type: "text",
|
|
label: "Tag",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
export default CardConfig
|