Drop Zone
A file upload area with progress. Drag, click or paste files, watch each fill and finish, cancel or retry it, with clear reasons for rejected files.
pixikit.com/docs/app-ui/forms/drop-zone
Customize
Max size
Max files5
Multiple
Variant
Preview
Disabled
Props
14| Name | Type | Default | Description |
|---|---|---|---|
onUpload | (file: File, report: (progress: number) => void, signal: AbortSignal) => Promise<void> | None | Called once per file. Report progress from 0 to 100, stop when the signal aborts, throw to fail. Without it files are only collected. |
value | DropFile[] | None | The accepted files with their state, when you hold the list. |
onValueChange | (files: DropFile[]) => void | None | Called with the new list whenever a file is added, removed or changes state. |
accept | string | None | The file types allowed, as in a file input's `accept`. |
maxSize | number | None | The largest file in bytes. |
maxFiles | number | None | The most files accepted. |
multiple | boolean | true | Allows more than one file. |
variant | "area" | "compact" | "avatar" | "area" | `area` is a large drop area, `compact` a single row, `avatar` a round single-image picker. |
title | string | None | The main line in the zone. |
hint | string | None | A line under the title, such as the accepted types and size. |
preview | boolean | false | Shows image thumbnails. |
disabled | boolean | false | Turns the zone off. |
name | string | None | Renders a real file input with this name so the files go with a plain form. |
className | string | None |