Prompt Input Attachments
- from @localmode
- by LocalMode
Attachment surface for the composer: image/file attach via picker, paste, and drag-and-drop with preview thumbnails, per-item removal, a hovercard preview, media-category auto-detection, and upload-state chips. Produces attachments via a bundled readFileAsDataUrl helper (copy-owned); the shape matches common chat image-content models.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/conversation/prompt-input-attachmentsLive preview
No live preview has been built for this component yet.
Registry dependencies5
- @localmode/ui/lib/utils
- @localmode/ui/conversation/prompt-input
- button
- hover-card
- @localmode/ui/lib/browser-utils
