File Dropzone

A large area to drop files on (web) or tap to pick them, with the files listed below.
Stable
Web
iOS
Android
@advui/core
Source

Basic

Drop files here or click to browseImages or PDFs, up to 10 MB each
quarterly-report.pdf2.3 MB

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { FileDropzone } from '@advui/core'

<FileDropzone
  accept="image/*,.pdf"
  maxSize={10_000_000}
  description="Images or PDFs, up to 10 MB each"
  onValueChange={setFiles}
/>

API reference

FileDropzone

Takes File Upload’s `value`, `onValueChange`, `accept`, `maxSize`, `maxFiles`, `onReject` and `pickFiles`.
PropTypeDefaultDescription
multiplebooleantrueKeep several files (the default for a dropzone).
titleReactNode'Drop files here or click to browse' / 'Tap to choose files'Main line; also the accessible name.
descriptionReactNode—Second line, e.g. allowed types and size.
invalidbooleanfalseError styling and `aria-invalid`.
disabledbooleanfalseNot focusable or editable.

Accessibility

  • The zone is one button named by its text, so keyboard and screen-reader users open the picker instead of dragging.
  • Dropped files are checked against accept, maxSize and maxFiles like picked ones.
  • The picked files are a list with named remove buttons.
Keyboard interactions
KeyAction
Enter / SpaceOpens the file picker.

Platform notes

Web
Files dragged over the zone highlight it; dropping adds them.
iOS
No drag and drop: the zone is a large button that opens the picker from setFilePicker.
Android
No drag and drop: the zone is a large button that opens the picker from setFilePicker.
Since v0.5.0Last updated Nov 2, 2026Edit this page on GitHub