Component packs › Fidget › Download Icon
Arrows drop into the tray under gravity and the tray gives under each one, until a tick lands.
Download Icon is an action from Fidget, a component pack with 10 animated icons: Animated icons with working parts: hinges, pendulums, springs and gravity. Price: $2 for the whole pack.
Built with: gravity drop, trampoline tray, async progress.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
action | () => unknown | Runs on press; arrows keep dropping until a returned promise settles. | |
disabled | boolean | ||
label | string | Accessible name. | |
resetAfter | number | 1800 | How long the tick stays, in ms. Default 1800. |
size | number | Scale factor. 1 = 56 px button. | |
onDone | () => void | ||
autoplay | number | false | Showcase mode: downloads every N ms while visible. |
play(ms?: number): void: Plays a download that takes `ms` milliseconds, without calling the action.destroy(): voidimport DownloadIcon from './DownloadIcon';
<DownloadIcon />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Animated icons.