Displays a file attachment with metadata, status, actions, and optional preview media.
Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
AttachmentGroup (optional) └── Attachment ├── AttachmentTrigger (optional) ├── AttachmentMedia (optional) ├── AttachmentContent │ ├── AttachmentTitle │ └── AttachmentDescription └── AttachmentActions (optional) └── AttachmentAction
Examples
Default
Loading...
Group
Loading...
Link
Loading...
States
Loading...
Types
Loading...
API Reference
Attachment
| Prop | Type | Default |
|---|---|---|
type | "file" | "card" | "image" | "file" |
variant | "default" | "muted" | "default" |
size | "default" | "sm" | "xs" | "default" |
orientation | "horizontal" | "vertical" | "horizontal" |
variant | "icon" | "image" | "icon" |
Angular
React
Solid
Svelte
Vue