# Download animated icon

> Download animated icon with a click replay interaction for React and shadcn/ui. Download the Lottie JSON or SVG, free under MIT.

Use the Download icon for download, upload and save buttons that confirm the action: it replays on every click and takes 4 s. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons. Also known as save file and export.

## Facts

- Interaction: [Click replay](https://useanimations.com/interactions/click-replay). Replays once from the start on every click unless reduced motion is preferred.
- Category: [Action](https://useanimations.com/categories/action)
- Duration: 4.00 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 6.7 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

- Lottie JSON: https://useanimations.com/icons/download.json
- Static SVG (download): https://useanimations.com/icons/download/download.svg
- ZIP (Lottie JSON and SVGs): https://useanimations.com/icons/download.zip
- shadcn registry item: https://useanimations.com/r/download.json
- Web page: https://useanimations.com/icons/download

## React

```bash
npm install react-useanimations
```

```jsx
import UseAnimations from 'react-useanimations';
import download from 'react-useanimations/lib/download';

<UseAnimations animation={download} size={32} />
```

## shadcn/ui

```bash
npx shadcn@latest add https://useanimations.com/r/download.json
```

```tsx
import { AnimatedDownload } from '@/components/animations/download';

<AnimatedDownload size={24} />
```

## HTML and lottie-web

```html
<div id="download-icon" style="width: 48px; height: 48px"></div>

<script src="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js"></script>
<script>
  const el = document.getElementById('download-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: false, autoplay: false, path: 'https://useanimations.com/icons/download.json' });
  const motion = matchMedia('(prefers-reduced-motion: reduce)');
  el.addEventListener('click', () => { if (!motion.matches) a.playSegments([0, a.totalFrames], true); });
</script>
```

## Other versions

- [Download V2](https://useanimations.com/icons/download-v2): Download V2 is shorter at 1.33 s instead of 4 s.

## FAQ

### Do fast clicks on Download queue up?

No queue: every click restarts the 4 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

### Should the Download icon be a <button>?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Download" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

### Can I color the fill of Download separately?

Yes: strokeColor sets the outlines and fillColor the filled parts, e.g. strokeColor="#e5484d" fillColor="#ffd1d1"; both follow the text color by default.

## Related icons

- [Download Cloud](https://useanimations.com/icons/download-cloud) (click-replay)
- [Bookmark](https://useanimations.com/icons/bookmark) (click-toggle)
- [Save](https://useanimations.com/icons/save) (click-replay)
- [Plus Circle](https://useanimations.com/icons/plus-circle) (click-replay)
- [Power](https://useanimations.com/icons/power) (click-replay)
- [Filter](https://useanimations.com/icons/filter) (click-replay)
- [Upload Cloud](https://useanimations.com/icons/upload-cloud) (click-replay)
- [Link](https://useanimations.com/icons/link) (click-replay)
- [Minus](https://useanimations.com/icons/minus) (click-replay)
- [X Square](https://useanimations.com/icons/x-square) (click-replay)
- [Minus Circle](https://useanimations.com/icons/minus-circle) (click-replay)
- [Thumbs Down](https://useanimations.com/icons/thumbs-down) (click-replay)

[All action icons](https://useanimations.com/categories/action) · [All icons](https://useanimations.com/icons)
