Component packs › Helium › Balloon Upload
The balloon inflates on its valve as the file uploads, is tied off at 100% and rises over the card on its string, swaying.
Balloon Upload is a file upload from Helium, a component pack with 6 balloon controls: Controls made of balloons: they inflate, float on their strings, carry things away and pop. Price: $2 for the whole pack.
Built with: inflation as progress, string physics, drop or choose.
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 |
|---|---|---|---|
label | string | ||
accept | string | Accepted types for the file picker, e.g. "image/*,.pdf". | |
upload | (file: File, progress: (p: number) => void) => Promise<unknown> | a simulated upload | Your upload. Call progress(0–1) as it goes; resolve when done. Default: a simulated upload. |
dark | boolean | ||
onDone | (file: File) => void | ||
autoplay | number | false | Showcase mode: uploads a sample file every N ms while visible. |
start(file?: File): void: Upload a file (or a sample when called with none).reset(): voiddestroy(): voidimport BalloonUpload from './BalloonUpload';
<BalloonUpload />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.