Attachment
File attachments with metadata, previews, actions and upload states.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/attachment-assistant-reply.json.
Usage
Examples
Files in an assistant reply
Composer tray with removable files
File picker that fills a tray
Image thumbnail strip
API
7 props
Accessibility
Use descriptive filenames and name every icon action. Keep retry and remove actions available when an upload fails.