Components

DropZoneItem

<DropZoneItem />

Constructor

# <DropZoneItem />

Single uploaded file. Usually it is used within DropZone, but it can also be reused anywhere

View Source admin-bro/src/frontend/components/design-system/molecules/drop-zone/drop-zone-item.tsx, line 31

Example

Type Definitions

object

# DropZoneItemProps

Properties:
Name Type Attributes Description
file File <optional>

Actual file buffer

onRemove function <optional>

Handler function triggered after clicking remove

src string <optional>

Preview image. If file is given and it is a image then src will be, overridden by this image.

filename string <optional>

filename. If 'file' is given it overrides what was given as a filename

View Source admin-bro/src/frontend/components/design-system/molecules/drop-zone/drop-zone-item.tsx, line 52