Components

DropZoneItem

<DropZoneItem />

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

Usage

import { DropZoneItem, DropZoneItemProps } from '@admin-bro/design-system'
See:

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

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-design-system/src/molecules/drop-zone/drop-zone-item.tsx, line 67