Attachment
Renders files and images with media, metadata, upload state, actions, and a full-card trigger that keeps the action buttons separately clickable.
Default
A horizontal file card: media icon, title and metadata, and a remove action.
Image
AttachmentMedia variant="image" renders a thumbnail; vertical orientation stacks the media over the content with actions floated on top.
Upload state
state drives the styling: idle is dashed, error turns destructive, and uploading/processing shimmer the title.
Sizes & orientation
default, sm, and xs sizes, plus a vertical orientation.
Group
AttachmentGroup is a horizontal, snapping row with scroll-fade edges.
Full-card trigger
AttachmentTrigger overlays the whole card to open it, while AttachmentAction buttons stay independently clickable above it.