ImageFormatter
This is a React component

Source
import { ImageFormatter } from "@prestojs/ui";
ImageFormatter(props)

Render an image from a URL

This is the default formatter used for ImageField

ParameterTypeDescription
*props

Any additional props are passed through to the img tag

props.blankLabelReactNode

What to render when value is null, undefined or an empty string

Defaults to null

props.valuenull|string|Blob

The value to render. Should be a valid URL or a File/Blob.

Examples