A
Home
Docs
Components
Charts
Create
Getting Started
Introduction
Installation
Theming
Dark Mode
React Native
Components
Accordion
Alert
Alert Dialog
Aspect Ratio
Attachment
Avatar
Badge
Breadcrumb
Bubble
Button
Button Group
Calendar
Card
Carousel
Chart
Checkbox
Collapsible
Combobox
Command
Context Menu
Dialog
Direction
Drawer
Dropdown Menu
Empty
Field
Form
Hover Card
Input
Input Group
Input OTP
Item
Kbd
Label
Marker
Menubar
Message
Message Scroller
Native Select
Navigation Menu
Pagination
Popover
Progress
Radio Group
Resizable
Scroll Area
Select
Separator
Sheet
Sidebar
Skeleton
Slider
Sonner
Spinner
Switch
Table
Tabs
Textarea
Toggle
Toggle Group
Tooltip
Attachment
Displays a file or image attachment with media, metadata, upload state, and actions.
Preview
Code
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.
Aspect Ratio
Avatar
Built with @astrawind/ui and @astrawind/css. Components ported from shadcn/ui (MIT).