add elements components
This commit is contained in:
33
components/elements/Card.config.tsx
Normal file
33
components/elements/Card.config.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user