Skip to content

Dropzone

Dropzone used to upload file within an area.

Import

js
import { MpDropzone } from '@mekari/pixel3'

Playground

API

MpDropzone

Props
Events
Slots
NameTypeDefault
id
Id of dropzone.
string -
variant
Variant of dropzone.
default | logo | product | avatardefault
accept
List of file types for input.
string -
name
Name for input.
string -
placeholder
Placeholder for input.
stringDrop your file(s) here or
description
Description of dropzone.
stringDescription for dropzone
loading-text
Text in loading state.
stringUploading...
button-text
Text in button change.
stringChange file
overlay-variant
Variant style in overlay dropzone.
white | blackwhite
is-show-preview
If true, dropzone will show image preview.
booleantrue
is-multiple
If true, accept multiple input file.
booleanfalse
is-loading
If true, show loading state.
booleanfalse
is-disabled
If true, dropzone will be disable.
booleanfalse
is-invalid
If true, dropzone will be invalid.
booleanfalse
is-required
If true, mark as required.
booleanfalse
has-custom-upload
If true, dropzone will show overlay when drag file.
booleanfalse
is-enable-drag-and-drop
If true, dropzone will have drag and drop feature.
booleantrue
is-enable-input-file
If true, dropzone will have input file feature.
booleanfalse
is-show-overlay
If true, dropzone will show overlay by default.
booleanfalse

Usage

With Area Upload

With Avatar Upload

With Logo Upload

With Product Upload