Attachment
shadcn Attachment on Base UI, Maia preset. Files and photos a caregiver shares with the care team.
Features
- Media, name, metadata and an action.
- Every icon-only action has an aria-label naming the file.
description
Discharge-summary.pdfPDF · 240 KB
Image
- variant="image" shows a preview; always write alt text that says what the photo shows.
- orientation="vertical" stacks the preview above the name.
Incision, day 3.jpgPhoto · 1.2 MB
Incision, day 5.jpgPhoto · 1.2 MB
States
- Five states: idle (dashed), uploading, processing, error (red, with Retry) and done. Each also says its state in words.
- An error says why and what to do instead.
- No shimmer while uploading: Evantis motion only animates transform and opacity.
schedule
Wound-photo.jpgReady to upload
progress_activity
Medication-list.pdfUploading · 64%
description
Insurance-card.jpgChecking the file
Old-scan.tiffCouldn't upload. TIFF isn't supported: try PDF or JPG.
Care-plan.pdfUploaded · 180 KB
Sizes
- default for the main upload list, sm in messages, xs inside dense rows.
- xs shows the name only; the icon steps down with the size (20, 16, 14).
description
Discharge summaryPDF · 2.4 MB
description
Discharge summaryPDF · 2.4 MB
description
Discharge summary
Group
- A group scrolls sideways; interactive cards are reached with Tab.
Trigger
- The trigger makes the whole card open the file; its aria-label says what opens.
- Actions stay clickable above the trigger.
description
Discharge-summary.pdfPDF · 240 KB · Opens in a new view