Skip to content

blocks/upload-queue

@fungi.computer/caps


@fungi.computer/caps / blocks/upload-queue

UploadQueueAction = Readonly<{ accessibleLabel: string; label: string; }>

LAW — queue thumbnails are decorative. The adjacent filename is the row’s accessible file fact; lifecycle status, progress, and actions remain named.


UploadQueueActions = Readonly<{ cancel?: UploadQueueAction; remove?: UploadQueueAction; retry?: UploadQueueAction; }>

Caller-owned labels for the row actions that may be shown.


UploadQueueItem = Readonly<{ actions: UploadQueueActions; alert?: string; id: string; name: string; preview: UploadQueuePreview; progress: number | null; progressLabel: string; statusLabel: string; }>

Caller-provided upload queue item data.


UploadQueuePreview = Readonly<{ kind: "file"; }> | Readonly<{ kind: "image"; url: string; }>

A caller-provided file or image preview for one upload row.


UploadQueueProps = Readonly<{ className?: string; items: readonly UploadQueueItem[]; onCancel: (id) => Promise<void> > | void; onRemove: (id) => void; onRetry: (id) => Promise<void> > | void; rowClassName?: string; }>

Props accepted by UploadQueue.

UploadQueue(__namedParameters): Element | null

Product-neutral upload facts and affordances; lifecycle stays with the host.

UploadQueueProps

Element | null