Component packs › Helium › Balloon Upload

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.

Balloon Upload props

PropTypeDefaultDescription
labelstring
acceptstringAccepted types for the file picker, e.g. "image/*,.pdf".
upload(file: File, progress: (p: number) => void) => Promise<unknown>a simulated uploadYour upload. Call progress(0–1) as it goes; resolve when done. Default: a simulated upload.
darkboolean
onDone(file: File) => void
autoplaynumber | falseShowcase mode: uploads a sample file every N ms while visible.

Methods on the ref

Use it in React

import BalloonUpload from './BalloonUpload';

<BalloonUpload />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Helium

Good for: File upload.