# UploadList

A named native list of host-controlled upload rows.

Connect Flood once using [the installation guide](https://flood.md/docs/installation). Then import the components you use; no per-component add command is needed.

## Example

```tsx
"use client";

import { FloodRoot, UploadList, UploadItem } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <UploadList label="Uploads">
        <UploadItem name="Brand guidelines.pdf" state="uploading" progress={45} />
        <UploadItem name="Logo.svg" state="success" />
        <UploadItem name="Cover.png" state="error" error="Connection interrupted" />
      </UploadList>
    </FloodRoot>
  );
}
```

## Design notes

- Each row has its own state and stable host identity.
- Cancellation, retry and removal callbacks are intents for the application.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `density` | `"compact" \| "comfortable"` | `—` |
| `dividers` | `boolean` | `—` |
| `label` | `string` | `Required` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLUListElement>, "role">` | `Forwarded` |
