The Queue
component renders a list of upload-ready files.
It must reference an Uploader
component to find files to display.
This component extends React.ComponentPropsWithoutRef<"div">
, meaning it accepts all native div
element props.
asChild
Type: boolean
references
The name of an Uploader
component this queue references.
Type: string
Required
clearQueue
It is recommended to use the ClearQueueButton
component instead.
Type: () => void
files
Type: QueueFile[]
isUploading
Type: boolean
progress
Total upload progress of all files in the queue in percent.
Type: number
Queue
must be used inside a Root
component.
When mapping over the files
array in a Queue
, you can access each file's loading state and progress.