Skip to content

Dropzone ​

Use bo-dropzone when clicking or dragging files into a larger target is useful. Use File Input for a compact control.

Usage ​

Upload documentsPDF files up to 5 MB
No files selected
<bo-dropzone>
  v-model="files"
  label="Upload documents"
  description="PDF files up to 5 MB"
  accept=".pdf"
  multiple
  :max-files="3"
/>

Validation ​

Use accept, max-files, and max-size for early client-side feedback. max-size is measured in bytes.

Images
<bo-dropzone label="Images" accept="image/*" :max-size="5242880" />

API ​

Prop / eventTypeDefaultDescription
id / dataTestIdstringautogeneratedRoot attributes.
modelValueFile | File[] | nullnullSelected file value used by v-model.
namestring-Native form name.
acceptstring-Accepted MIME types or extensions.
multiplebooleanfalseAllows multiple files.
maxFiles / maxSizenumber-Count and byte limits.
label / descriptionstring-Prompt and supporting text.
error / hintstring-Validation or supporting text.
required / disabledbooleanfalseNative control states.
ariaLabelstring-Accessible name for the file input.
update:modelValueevent-Emitted when selected files change.
change(files: File[]) event-Emitted after a selection or removal.
error(message: string) event-Emitted when selection validation fails.

Released under the MIT License.