AI · Application UI
Attachments
A compound component for displaying file, media, and source-document attachments in grid, inline, or list layouts with previews, remove buttons, and hover-card details.
@byronwade/foundation@byronwade/utils@byronwade/button@byronwade/hover-cardai@phosphor-icons/react
Adapted from Vercel AI Elements , the original components, repurposed onto the byronwade/ui design system (semantic tokens, dark mode, small subtle refinements). © Vercel.
Feature showcase
Installation
Features
2 examples
Default, Variants.
API
Dependencies
| Package | Kind | Description |
|---|---|---|
| @byronwade/foundation | registry | Installed through the byronwade/ui registry. |
| @byronwade/utils | registry | Installed through the byronwade/ui registry. |
| @byronwade/button | registry | Installed through the byronwade/ui registry. |
| @byronwade/hover-card | registry | Installed through the byronwade/ui registry. |
| ai | npm | Installed from npm. |
| @phosphor-icons/react | npm | Installed from npm. |
Source and related
| File | Path |
|---|---|
| Component | registry/components/ai-attachments.tsx |
| Default example | content/examples/ai-attachments/default.tsx |
| Variants example | content/examples/ai-attachments/variants.tsx |