File List

A stacked list of file rows showing each name and metadata such as size or date, with an optional download button per item. Good for React attachment lists.

src/registry/ui/file-list.tsx/r/file-list.json

Installation#

bash
npx shadcn@latest add @minidev/file-list

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/file-list.json

Usage#

tsx
import { FileList } from "@/components/ui/file-list"

export function Example() {
  return <FileList />
}

API reference#

FileList props
PropTypeDefault
filesFileItem[]SAMPLE_FILES
onDownload(id: string) => void-
classNamestring-

Dependencies#

npm

React only

Built from

All media and upload components

Learn more