Components•Animated download
Components•Animated download
Animated download
A download card with a file name, size, speed and time left in mono, an ember progress line with a percentage, and a check once the transfer is saved. The page owns the run state, so the card can be wired to real transfer events.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/animated-downloadHow to use
import { AnimatedDownload } from "@/components/bjork-ui/hud/animated-download";export function Demo() { return ( <AnimatedDownload fileName="bjork-ui-registry.zip" fileSizeMb={48.6} isAnimating={isDownloading} onAnimationComplete={() => setIsDownloading(false)} /> );}
bjork-ui-registry.zip
Ready
0%
- Size
- 0.0/48.6 MB
- Speed
- 0.0 MB/s
- Left
- 0:00
Options