Files
nextjs-ts/components/elements/Image.config.tsx
2026-06-09 14:43:25 -04:00

43 lines
889 B
TypeScript

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