FileList
FileList(
props):Element
Defined in: packages/ui/src/components/file-list.tsx:26
Displays a list of uploaded files with metadata, formatted sizes, and download links.
Each file is rendered as a row showing the file name, size (human-readable), and
a download link (either via onDownload callback or the file’s direct url).
Returns a “No files” placeholder when the list is empty.
Parameters
Section titled “Parameters”See FileListProps.
Returns
Section titled “Returns”Element
Example
Section titled “Example”<FileList files={post.attachments} onDownload={(file) => window.open(storage.getSignedUrl(file.key))}/>