Component packs › Helium › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | ||
min | number | ||
max | number | 9 | Most balloons the bunch holds. Default 9. |
label | string | ||
unit | [string, string] | ["guest", "guests"] | Unit for screen readers and the readout. Default ["guest", "guests"]. |
dark | boolean | ||
onChange | (value: number) => void | ||
autoplay | number | false | Showcase mode: adds and removes balloons every N ms while visible. |
readonly value: numbersetValue(v: number, silent?: boolean): voiddestroy(): voidimport BalloonCounter from './BalloonCounter';
<BalloonCounter />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.