

Every state


default


focus


partial


rejected


complete


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "documents" | Id prefix; each file input is `${id}-${document.id}`. |
| label | string | "Required documents" | The visible heading above the list. |
| defaultDocuments | FileUploadChecklistDocument[] | – | The required documents and their starting state: id, title, hint, status, fileName, progress, reason. |
| accept | string | ".pdf,image/png,image/jpeg" | Accepted types, as the file picker takes them. |
| acceptLabel | string | "PDF, JPG or PNG" | The accepted types in words, for rejection messages. |
| maxSize | number | 10485760 | Largest file in bytes. |
| disabled | boolean | – | Disables every upload button. |
| upload | FileUploadChecklistUpload | – | Your upload call (file, { onProgress, signal }). The default is a local simulation; a name containing "fail" fails. |
| onDocumentsChange | (documents: FileUploadChecklistDocument[]) => void | – | Called when any document's status changes. |
| className | string | – | Extra classes on the wrapper. |
More file uploads
All 12file-upload-03 is in UI ProGet UI Pro, €199


