Attachments
BuiltDisplays files and documents attached to the current record. Each row shows a file type icon, filename, size, uploader, and upload date. Supports an inline upload action for adding new files directly from the card.
Usage Guidance
When to use
- +Displaying supporting documents on job, account, or project records where users need quick access to files.
- +Providing inline upload capability so field workers or administrators can attach files without navigating away from the record.
- +Showing a summary of recent uploads with a link to the full attachment list.
When not to use
- −For rich media galleries with image previews and thumbnails — use a dedicated Media Gallery component instead.
- −When file management requires folder organization or complex hierarchies — use a full document management view.
- −For single-file fields where only one attachment is expected — use an inline file picker input instead of a list component.
Breeze UI Adherence
Tokens Used
color.border.defaultcolor.background.surfacecolor.text.defaultcolor.text.subtlecolor.interactive.defaultspacing.5spacing.3spacing.3.5font.size.smfont.weight.semiboldfont.size.xsradius.lgshadow.smCustom CSS — not covered by Breeze UI
bg-red-50 text-red-500 / bg-blue-50 text-blue-500 / bg-gray-100 text-gray-400File type icon color mapping based on MIME type. Breeze UI does not provide semantic file-type color tokens — custom Tailwind color classes are used to visually distinguish PDF, DOCX, image, and generic file types.
truncate (text-overflow: ellipsis; white-space: nowrap; overflow: hidden)Filename and metadata subtitle truncation. Breeze UI does not provide a text-overflow token — Tailwind's truncate utility is used to prevent long filenames from breaking the row layout.
h-8 px-3 text-sm border border-gray-200 rounded-mdCompact header action button styling. Breeze UI's Button component does not expose a 32px compact variant suitable for card headers — custom sizing matches the header height proportions.
w-10 h-10 rounded-lg (icon container)Fixed 40px icon container with 8px radius. Breeze UI does not have a file-type icon container component — custom sizing ensures consistent icon presentation across all file types.
Settings
Comma-separated list of accepted file extensions (e.g., '.pdf,.jpg,.docx'). Use '*' to accept all file types.
*Maximum file size in megabytes allowed for uploads.
25Maximum number of attachment rows to display before showing the 'View All' link.
5Display the 'Add Files' upload button in the card header.
trueDefault sort order for the attachments list.
date_descAttributes
Array of file attachments linked to the record. Each contains fileName, fileSize, mimeType, uploadedBy, and uploadedAt.
{ fileName: string, fileSize: number, mimeType: string, uploadedBy: string, uploadedAt: string }Total number of attachments on the record. Shown in the header count badge.
The UID of the parent record. Automatically bound by the page builder runtime.
Changelog
Initial component specification created.
Added Breeze UI token mapping and adherence tracking. Defined file type icon color scheme, upload flow, and security constraints.