Skip to content

Ap-dropzone

Example

Supported formats : image/jpeg
ts
    <ApDropZone title="Drop files here..." :multiple="true" :formats="[ 'image/jpeg']"/>

Props

NameTypeDefaultRequired
titleStringDrop a file here or click to select onefalse
multipleBooleanfalsefalse
formatsarray['*']false

Emit

ts
const emitEvent = (fileList: File[]) => {
  emit('update:dropFile', fileList)
}