Attachment

Displays a file or image attachment with media, metadata, upload state, and actions.
quarterly-report.pdf
2.4 MB
screenshot.png
Uploading…
photo.heic
Upload failed
notes.md
4 KB
Drop a file here
data.csv

Installation

Every component ships in @astrawind/ui. If you haven't set it up, follow the installation guide, then import the component:
Terminal
npx expo install @astrawind/ui @astrawind/css lucide-react-native react-native-svg

Usage

tsx
import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentMedia, AttachmentTitle, } from "@astrawind/ui/attachment"
See the Code tab above for a complete example.
Built with @astrawind/ui and @astrawind/css. Components ported from shadcn/ui (MIT).