Attachment
Displays a file or media attachment, typically inside a chat message or composer.
$
Registry itembunx shadcn@latest add @nx-ui/attachmentBasic usage
An icon, a title and description, and a remove action, grouped in a scrollable row.
Sizes & orientation
Three densities (default, sm, xs) and both a horizontal row and a vertical tile with image media.
States
idle (dashed, awaiting a drop), uploading and processing (shimmering title), error, and done.
Actions & trigger
AttachmentAction adds icon buttons; AttachmentTrigger overlays the whole card as a single control, e.g. a link to open the file.
Composition: sample submission composer
A message composer for a Nexus soil-recovery project, mixing upload states with a removable attachment list.
Barrowfield ReGenAttach lab results
3 filesAPI reference
Exported parts and their props, extracted from the component source.