File upload
CoreBlockA complete file selection flow with constraints, progress, and error feedback.
pnpm dlx shadcn@latest add https://wui.alann.works/r/file-upload.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
accept | string | — |
disabled | boolean | false |
label | string | "Upload files" |
description | string | — |
multiple | boolean | true |
maxSize | number | — |
value | FileUploadItem[] | — |
onChange | (files: FileUploadItem[]) => void | — |
onUpload | (file: File, options: { onProgress: (percent: number) => void; signal: AbortSignal }) => Promise<void> | — |