label | string | Drop files to upload | The zone's title. |
| The zone's title. |
browseLabel | string | choose from your computer | The link in the line under the title that opens the file picker. |
| The link in the line under the title that opens the file picker. |
hint | string | - | The rest of that line, after the link, for what this zone accepts. |
| The rest of that line, after the link, for what this zone accepts. |
items | FileUploadItem[] | - | |
|
onCancel | (id: string) => void | - | Called with an item's id when its cancel button is pressed. |
Called with an item's id when its cancel button is pressed. |
description | string | - | |
|
icon | ReactNode | - | |
|
accept | string | - | |
|
multiple | boolean | false | |
|
onFilesChange | (files: File[]) => void | - | Called with the whole list whenever it changes, on a pick, a drop or a removal. |
| Called with the whole list whenever it changes, on a pick, a drop or a removal. |
border | dashed | solid | none | dashed | |
|
error | string | - | |
|
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks the picker and refuses drops, dims the zone and fills it, so it reads as unavailable rather than merely empty. |
| Blocks the picker and refuses drops, dims the zone and fills it, so it reads as unavailable rather than merely empty. |
className | string | - | |
|
focus | boolean | string | true | |
|