Skip to content

zk-file-dropzone ​

A zone to drop files on, around a real file input.

Props ​

PropTypeDefaultDescription
namestringrequiredName of the field (name[] when multiple)
acceptstring|nullnullAccepted types
multipleboolfalseSeveral files
requiredboolfalseRequired
disabledboolfalseDisabled
labelstring'Drop files here or'Text
browseLabelstring'browse'Text of the link to the file picker
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

The input is a real one: the browser accepts the files dropped on it and sends them with the form. Make the input cover .file-dropzone-area with opacity: 0 in your style. The list of files and the previews of the Vue component are not ported. No script.

Examples ​

Documents ​

blade
<x-zk-file-dropzone name="documents" accept=".pdf" :multiple="true" />

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.