Search documentation

Search the documentation and open a page.

Displays a file attachment with metadata, status, actions, and optional preview media.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/attachment

Composition

AttachmentGroup (optional) └── Attachment ├── AttachmentTrigger (optional) ├── AttachmentMedia (optional) ├── AttachmentContent │ ├── AttachmentTitle │ └── AttachmentDescription └── AttachmentActions (optional) └── AttachmentAction

Examples

Default

Loading...

Group

Loading...
Loading...

States

Loading...

Types

Loading...

API Reference

Attachment

PropTypeDefault
type"file" | "card" | "image""file"
variant"default" | "muted""default"
size"default" | "sm" | "xs""default"
orientation"horizontal" | "vertical""horizontal"
variant"icon" | "image""icon"