Component packs › Helium › Balloon Counter

Balloon Counter

Plus fills a balloon on the weight and it rises into the bunch, nudging the rest; minus lets the newest go, its string trailing.

Balloon Counter is a stepper 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: bunch collisions, release and float off, spinbutton.

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 Counter props

PropTypeDefaultDescription
valuenumber
minnumber
maxnumber9Most balloons the bunch holds. Default 9.
labelstring
unit[string, string]["guest", "guests"]Unit for screen readers and the readout. Default ["guest", "guests"].
darkboolean
onChange(value: number) => void
autoplaynumber | falseShowcase mode: adds and removes balloons every N ms while visible.

Methods on the ref

Use it in React

import BalloonCounter from './BalloonCounter';

<BalloonCounter />

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

More in Helium

Good for: File upload.