# file attachment, 21st-serafimcloud component by serafimcloud

File/image chip for AI chat input. Renders file icons by extension, image thumbnails, image-only mode, and a hover-revealed remove button. Self-contained port

> Page: https://ui.eneawork.it/comp/21st-serafimcloud/file-attachment
> Markdown: https://ui.eneawork.it/comp/21st-serafimcloud/file-attachment.md

- Library: [21st-serafimcloud](/components/lib/21st-serafimcloud)
- HTML page: https://ui.eneawork.it/comp/21st-serafimcloud/file-attachment

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-serafimcloud/file-attachment.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
