Skip to main content

components · forms & controls

TuxFileDropzone

Accessible drag-and-drop file upload target supporting format filtering, size and count constraints, file removal affordances, and keyboard selection.

interactive showcase

Dropzone Target

Max MB:

usage syntax

Code snippet

vue
<TuxFileDropzone
  v-model="files"
  multiple
  :max-files="5"
  :max-size="25 * 1024 * 1024"
  accept=".csv,.json,.parquet,.geojson"
  hint="Drop transportation telemetry, crash records, or corridor GIS data here."
/>

api reference

Props

PropTypeDefaultDescription
v-modelFile[][]Two-way bound array of currently staged files.
acceptstringundefinedComma-separated extension or MIME pattern (e.g. ".csv,.json").
multiplebooleanfalseAllows staging multiple files simultaneously.
maxSizenumber50 MBMaximum allowed file size per item in bytes.
maxFilesnumber10Upper limit on staged files when multiple is true.