import { CMSType, Property, ResolvedProperty } from "../types"; /** * @group Preview components */ export type PreviewSize = "medium" | "small" | "tiny"; /** * @group Preview components */ export interface PropertyPreviewProps { /** * Name of the property */ propertyKey?: string; /** * Current value of the property */ value: T; /** * Property this display is related to */ property: Property | ResolvedProperty; /** * Desired size of the preview, depending on the context. */ size: PreviewSize; /** * Max height assigned to the preview, depending on the context. * It may be undefined if unlimited. */ height?: number; /** * Max height width to the preview, depending on the context. * It may be undefined if unlimited. */ width?: number; /** * Additional properties set by the developer */ customProps?: CustomProps; }