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

SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers