Velocity X Components

Cards & Expandables

File Attachment Card

A row for an upload list or attachment drawer — type icon, filename, locale-formatted file size, and download/remove actions. Built for stacking one per uploaded file, with the remove action firing a hook event so you can wire real deletion.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add file-attachment-card

Built for astro.

Full docs for File Attachment Card →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
File Attachment Card

Q3-financial-report.pdf

2.3 MB

Props

NameTypeRequiredDefaultDescription
filenamestringYes
fileTypeFileKindNo'generic'
sizeBytesnumberYes
downloadHrefstringNo
downloadLabelstringNo'Download'
removeLabelstringNo
status'ready' | 'uploading' | 'error'No'ready'
classstringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/file-attachment-card/FileAttachmentCard.astro

Using the File Attachment Card component

Install it with velocityx add file-attachment-card. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Cards & Expandables.