Describes a preview image that can be displayed for an upload element.

Hierarchy

  • PreviewImage

Index

Properties

clickAction

clickAction: "download" | "fileChooser" | "none"

The action to perform when the image is clicked.

deletable

deletable: boolean

Whether to add a delete button to remove the image and clear the upload button.

fileName

fileName: string

File name of the selected file.

imageSource

imageSource: string

A data URL with the image. When empty, a default image is used.