# Attachment Group

A scrolling row of files above a composer. It fades where it overflows.

Tier: Free

## Installation

```bash
npx shadcn add @fetaui/attachment-group
```

## Usage

```tsx
import { AttachmentGroup } from '@/components/fetaui/attachment'

export function Example() {
  return <AttachmentGroup items={files} />
}
```

## API

| Prop | Type | Default |
|---|---|---|
| items | UploadItem[] | required |
| label | string | Attachments |
| animated | boolean | true |
| className | string |  |

## When to use

- For several files waiting to send, as in a message composer.

## When not to use

- For an upload queue with progress: use Attachment.

## Accessibility

- The row is a named group of list items.
- The pager has its own label.

## Motion

- Cards scale in from .96 and the rest close the gap on a spring.
- The pager scrolls one page smoothly.
- With reduced motion, changes are instant.
