Skip to content

Image

type Image = {
alt?: string;
fit?: 'cover' | 'contain' | 'fill' | 'scale-down' | 'none';
flush?: boolean;
frame?: boolean;
id?: string;
key?: string;
position?:
| 'top left'
| 'top'
| 'top right'
| 'left'
| 'center'
| 'right'
| 'bottom left'
| 'bottom'
| 'bottom right';
src: string;
type: 'Image';
} & BlockProps;
optional alt: string;
optional fit: "cover" | "contain" | "fill" | "scale-down" | "none";
optional flush: boolean;
optional frame: boolean;
optional id: string;
optional key: string;
optional position:
| "top left"
| "top"
| "top right"
| "left"
| "center"
| "right"
| "bottom left"
| "bottom"
| "bottom right";
src: string;
type: 'Image';