Home / Function/ FileUploadList() — ui Function Reference

FileUploadList() — ui Function Reference

Architecture documentation for the FileUploadList() function in progress-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  50666576_6c51_e7d2_d309_b536a60b3a50["FileUploadList()"]
  cb6cccb8_6779_b921_ccc5_527b586620b1["progress-example.tsx"]
  50666576_6c51_e7d2_d309_b536a60b3a50 -->|defined in| cb6cccb8_6779_b921_ccc5_527b586620b1
  style 50666576_6c51_e7d2_d309_b536a60b3a50 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/progress-example.tsx lines 80–142

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 (
    <Example title="File Upload List">
      <ItemGroup>
        {files.map((file) => (
          <Item key={file.id} size="xs" className="px-0">
            <ItemMedia variant="icon">
              <IconPlaceholder
                lucide="FileIcon"
                tabler="IconFile"
                hugeicons="FileIcon"
                phosphor="FileIcon"
                remixicon="RiFileLine"
                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>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does FileUploadList() do?
FileUploadList() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/progress-example.tsx.
Where is FileUploadList() defined?
FileUploadList() is defined in apps/v4/registry/bases/radix/examples/progress-example.tsx at line 80.

Analyze Your Own Codebase

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

Try Supermodel Free