Command Palette
Search for a command to run...
Loading...
Loading...
Display files, documents, and image uploads with the flexible Attachment component. Clean design, support for download actions, upload states, and different layouts.
UIAble Attachment helps you display uploaded documents, images, and other media assets. Built on shadcn/ui design patterns, it supports a wide variety of states (uploading, error, done), orientations (horizontal and vertical), and customizable media previews (icons or images).
Direct source code access allows you to easily customize remove actions, download triggers, or loading state shimmers to match your project's upload backend requirements.
Perfect for chat interfaces, file lists, and document upload forms, the component works seamlessly with Tailwind CSS and class-variance-authority (CVA).
UIAble Attachment gives you a pre-styled, accessibility-friendly wrapper for displaying attachment lists. Handling multiple upload states (idle, uploading, processing, error, done) is built directly into the CVA styles, ensuring visual consistency.
Direct component ownership means you can easily replace action icons, add tooltips, or customize the loader without wrestling with a closed npm library.
It scales perfectly across desktop and mobile screens. With default, small, and extra-small sizes, it fits anywhere from a chat compose bar to a dense table row.
UIAble Attachment is designed to connect easily with your frontend file upload library (e.g., React Dropzone or Uploadthing) to display files before and after upload.
You can integrate it into advanced application layouts such as:
The component fully respects global Tailwind styling, automatically inheriting font and color system configurations.