Home / Function/ FileUploadList() — ui Function Reference

FileUploadList() — ui Function Reference

Architecture documentation for the FileUploadList() function in file-upload-list.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fa1a8b09_bfa2_aa36_5531_6e3c6a2ce59f["FileUploadList()"]
  b837ea77_9d5c_d359_ecdf_5de71aa09909["file-upload-list.tsx"]
  fa1a8b09_bfa2_aa36_5531_6e3c6a2ce59f -->|defined in| b837ea77_9d5c_d359_ecdf_5de71aa09909
  style fa1a8b09_bfa2_aa36_5531_6e3c6a2ce59f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/file-upload-list.tsx lines 15–68

export function FileUploadList() {
  const files = React.useMemo(
    () => [
      {
        id: "1",
        name: "document.pdf",
        progress: 45,
        timeRemaining: "2m 30s",
      },
      {
        id: "2",
        name: "presentation.pptx",
        progress: 78,
        timeRemaining: "45s",
      },
      {
        id: "3",
        name: "spreadsheet.xlsx",
        progress: 12,
        timeRemaining: "5m 12s",
      },
      {
        id: "4",
        name: "image.jpg",
        progress: 100,
        timeRemaining: "Complete",
      },
    ],
    []
  )

  return (
    <ItemGroup>
      {files.map((file) => (
        <Item key={file.id} size="xs" className="px-0">
          <ItemMedia variant="icon">
            <FileIcon className="size-5" />
          </ItemMedia>
          <ItemContent className="inline-block truncate">
            <ItemTitle className="inline">{file.name}</ItemTitle>
          </ItemContent>
          <ItemContent>
            <Progress value={file.progress} className="w-32" />
          </ItemContent>
          <ItemActions className="w-16 justify-end">
            <span className="text-muted-foreground text-sm">
              {file.timeRemaining}
            </span>
          </ItemActions>
        </Item>
      ))}
    </ItemGroup>
  )
}

Subdomains

Frequently Asked Questions

What does FileUploadList() do?
FileUploadList() is a function in the ui codebase, defined in apps/v4/examples/radix/file-upload-list.tsx.
Where is FileUploadList() defined?
FileUploadList() is defined in apps/v4/examples/radix/file-upload-list.tsx at line 15.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free