Skip to content

ImageField

ImageField(props): Element

Defined in: packages/ui/src/fields/image-field.tsx:17

Read-only display component that renders an image thumbnail.

Displays the image at the specified dimensions with object-fit: cover and rounded corners. Returns an em-dash for null/undefined values.

ImageFieldProps

See ImageFieldProps.

Element

An <img> element, or a placeholder <span> for null values.

<ImageField value={post.coverImageUrl} width={120} height={80} alt="Cover" />