add elements components
This commit is contained in:
42
components/elements/Image.config.tsx
Normal file
42
components/elements/Image.config.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
import type { ElementConfig } from "./types"
|
||||
|
||||
export const ImageConfig: ElementConfig = {
|
||||
Image: {
|
||||
label: "Image",
|
||||
fields: {
|
||||
src: {
|
||||
type: "text",
|
||||
label: "Source URL",
|
||||
},
|
||||
alt: {
|
||||
type: "text",
|
||||
label: "Alt Text",
|
||||
},
|
||||
objectFit: {
|
||||
type: "select",
|
||||
label: "Object Fit",
|
||||
options: [
|
||||
{ label: "Cover", value: "cover" },
|
||||
{ label: "Contain", value: "contain" },
|
||||
{ label: "Fill", value: "fill" },
|
||||
{ label: "None", value: "none" },
|
||||
{ label: "Scale Down", value: "scale-down" },
|
||||
],
|
||||
},
|
||||
circle: {
|
||||
type: "boolean",
|
||||
label: "Circle",
|
||||
},
|
||||
width: {
|
||||
type: "text",
|
||||
label: "Width",
|
||||
},
|
||||
height: {
|
||||
type: "text",
|
||||
label: "Height",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default ImageConfig
|
||||
Reference in New Issue
Block a user