Skip to content

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

PropTypeDefaultDescription
labelstring"Download"Button text at rest.
doneLabelstring"Done"Text when it finishes.
fileNamestring"furin-kit.zip"File name shown while it "downloads".
fileSizestring"4.2 MB"File size shown while it "downloads".
durationnumber3200Duration of the simulated download, in milliseconds.
hrefstring""If set, that file is really downloaded when it finishes.
resetAfternumber2600Milliseconds it stays in "done" before returning to the start (0 = stays).
colorstring"#F3F4F7"Color of the button at rest.
doneColorstring"#6EE0A6"Color of the "done" state.
onStart() => void""Called when the download starts.
onComplete() => void""Called when it finishes.
autoplaynumber0Seconds between automatic downloads (0 = off; stops on interaction).

Installation

Install it

1Install the package

npm i furin-ui

2Import 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

  • A liquid-glass button that refracts the background behind it.

    Buttons

  • A 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

  • Press 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