Download Button
A button that narrows into a progress bar, advances at an uneven pace like a real network, and ends in a checkmark. With href, it really downloads the file.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 12 (9 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Download" | Button text at rest. |
doneLabel | string | "Done" | Text when it finishes. |
fileName | string | "furin-kit.zip" | File name shown while it "downloads". |
fileSize | string | "4.2 MB" | File size shown while it "downloads". |
duration | number | 3200 | Duration of the simulated download, in milliseconds. |
href | string | "" | If set, that file is really downloaded when it finishes. |
resetAfter | number | 2600 | Milliseconds it stays in "done" before returning to the start (0 = stays). |
color | string | "#F3F4F7" | Color of the button at rest. |
doneColor | string | "#6EE0A6" | Color of the "done" state. |
onStart | () => void | "" | Called when the download starts. |
onComplete | () => void | "" | Called when it finishes. |
autoplay | number | 0 | Seconds between automatic downloads (0 = off; stops on interaction). |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { DownloadButton } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Dependencies
- React
- 18 or later
- Other libraries
- none
- License
- MIT
Each file ships its own CSS: there's nothing else to install.
Keep exploring
Glint Button
FreeA dark button with a glint that sweeps across it every so often and on hover, lighting up the fill, the border and the text at once.
Buttons
Hold to Confirm
FreePress and hold to confirm: a ring fills, the button shakes more and more, and it vibrates on completion. Works with mouse, touch or keyboard.
Buttons