---
title: "Animated Download Icon"
description: "An arrow and a tray for Download and Upload buttons. On hover the arrow drops into the tray, or lifts out of it for Upload."
url: https://gelatinui.com/components/animated-download-icon
markdown_url: https://gelatinui.com/components/animated-download-icon.md
access: free
install: "npx shadcn@latest add @gelatin-ui/animated-download-icon"
registry_item: https://gelatinui.com/r/animated-download-icon.json
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Download Icon

> An arrow and a tray for Download and Upload buttons. On hover the arrow drops into the tray, or lifts out of it for Upload.

Page: https://gelatinui.com/components/animated-download-icon

## When to use it

Best for: A Download or Upload button, with an arrow that moves once on hover or focus.

- Use it in a Button with text or a name.
- Use `direction="up"` for Upload.
- Add 1 to `play` to play it from code, such as when a file saved.

## When not to use it

- For a copy action, use an [Animated Copy Icon](https://gelatinui.com/components/animated-copy-icon.md).
- For a Retry or Refresh button, use an [Animated Refresh Icon](https://gelatinui.com/components/animated-refresh-icon.md).

## Notes for agents

- `variant` (`stroke`, `solid`, `duotone`, `twotone`, `bulk`) and `corners` (`round`, `sharp`) pick the style. Use one style for every icon of a product.
- It plays once per hover or keyboard focus of the control around it.
- A touch has no hover, so a tap plays nothing. `play` still plays it.
- `trigger="none"` with `play` plays it only from code.
- It is 24 by 24 by design. Set the size with a class.

## Anatomy

```text
AnimatedDownloadIcon
```

## API reference

### AnimatedDownloadIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `direction` | `"down" \| "up"` | "down" | `down` (default) for Download and Save, `up` for Upload. |
| `variant` | `"bulk" \| "duotone" \| "solid" \| "stroke" \| "twotone"` |  | `stroke` (default): 1.5 strokes. `solid`: the body filled, inner details cut through. `duotone`: a 40% fill under the stroke. `twotone`: the details at 40%. `bulk`: the body filled at 40% with no outline, the details at full color. |
| `corners` | `"round" \| "sharp"` |  | `round` (default): round caps and joins, soft corners. `sharp`: square caps, miter joins. |
| `trigger` | `"hover" \| "none"` |  | `hover` (default) plays once per hover or keyboard focus of the control around the icon. |
| `play` | `number` |  | Plays once each time this number changes (a new notice, a saved form). |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedDownloadIcon | `animated-download-icon` |  |  |  |

## Usage

Put it in a Button with a name.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/animated-download-icon @gelatin-ui/button
```

```tsx title="download-button.tsx"
import { AnimatedDownloadIcon } from "@/components/icons/animated-download-icon";
import { Button } from "@/components/ui/button";

export function DownloadButton() {
  return (
    <Button variant="outline">
      <AnimatedDownloadIcon />
      Download
    </Button>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/animated-download-icon
```

It adds 14 registry items: 13 files, 2479 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Animated Copy Icon](https://gelatinui.com/components/animated-copy-icon.md)
- [Animated Refresh Icon](https://gelatinui.com/components/animated-refresh-icon.md)
- [Button](https://gelatinui.com/components/button.md)

## Accessibility

It is a picture, so the Button needs text or an `aria-label`.

Keyboard focus plays it too.

## Motion

| Part | Motion |
| --- | --- |
| Play | iconHover · the arrow moves once, then rests |
