# Shadcn Attachment Components

A component for displaying file attachments with media previews, upload states, and actions. The examples integrate cleanly with projects built on Radix UI or Base UI.

- Page: https://shadcnuikit.com/components/attachment
- Variants: 5 (5 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Variant 1](https://shadcnuikit.com/components/attachment/1) (Free, install: `npx shadcn@latest add @shadcnuikit/attachment1`)
- [Variant 2](https://shadcnuikit.com/components/attachment/2) (Free, install: `npx shadcn@latest add @shadcnuikit/attachment2`)
- [Variant 3](https://shadcnuikit.com/components/attachment/3) (Free, install: `npx shadcn@latest add @shadcnuikit/attachment3`)
- [Variant 4](https://shadcnuikit.com/components/attachment/4) (Free, install: `npx shadcn@latest add @shadcnuikit/attachment4`)
- [Variant 5](https://shadcnuikit.com/components/attachment/5) (Free, install: `npx shadcn@latest add @shadcnuikit/attachment5`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)