FileUploadList() — ui Function Reference
Architecture documentation for the FileUploadList() function in progress-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ca5e89d9_7e66_6c1d_faeb_7a2e56aec5cf["FileUploadList()"] 5b2376b5_e2dc_e507_8f92_62432cce38bc["progress-example.tsx"] ca5e89d9_7e66_6c1d_faeb_7a2e56aec5cf -->|defined in| 5b2376b5_e2dc_e507_8f92_62432cce38bc style ca5e89d9_7e66_6c1d_faeb_7a2e56aec5cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/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>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does FileUploadList() do?
FileUploadList() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/progress-example.tsx.
Where is FileUploadList() defined?
FileUploadList() is defined in apps/v4/registry/bases/base/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