Home / File/ file-upload-list.tsx — ui Source File

file-upload-list.tsx — ui Source File

Architecture documentation for file-upload-list.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  4eb47040_5e59_95a2_31b8_07dc79739dde["file-upload-list.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  4eb47040_5e59_95a2_31b8_07dc79739dde --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  6dd5189d_43e3_a38a_acbe_4ea1ae186ae2["item"]
  4eb47040_5e59_95a2_31b8_07dc79739dde --> 6dd5189d_43e3_a38a_acbe_4ea1ae186ae2
  5af3884a_a920_118f_9d1f_94da4f8da1d0["progress"]
  4eb47040_5e59_95a2_31b8_07dc79739dde --> 5af3884a_a920_118f_9d1f_94da4f8da1d0
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  4eb47040_5e59_95a2_31b8_07dc79739dde --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 4eb47040_5e59_95a2_31b8_07dc79739dde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import {
  Item,
  ItemActions,
  ItemContent,
  ItemGroup,
  ItemMedia,
  ItemTitle,
} from "@/examples/base/ui/item"
import { Progress } from "@/examples/base/ui/progress"
import { FileIcon } from "lucide-react"

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

Functions

Dependencies

  • item
  • lucide-react
  • progress
  • react

Frequently Asked Questions

What does file-upload-list.tsx do?
file-upload-list.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in file-upload-list.tsx?
file-upload-list.tsx defines 1 function(s): FileUploadList.
What does file-upload-list.tsx depend on?
file-upload-list.tsx imports 4 module(s): item, lucide-react, progress, react.
Where is file-upload-list.tsx in the architecture?
file-upload-list.tsx is located at apps/v4/examples/base/file-upload-list.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free