Component packs › Coil › Hanging Scale
Brass weights stack on the pan as progress grows; the coil stretches by Hooke's law and the pointer reads the ruler as it bobs.
Hanging Scale is a progress from Coil, a component pack with 6 spring controls: Controls on real coil springs: they compress, stretch, overshoot and settle like wire does. Price: $2 for the whole pack.
Built with: Hooke's law stretch, weights per 10%, damped bob.
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 | 0.42 | 0–1. Default 0.42. |
label | string | "Uploading" | Text before the percentage, and the accessible name. Default "Uploading". |
doneLabel | string | "Done" | Text at 100%. Default "Done". |
readonly value: numbersetValue(value: number): voiddestroy(): voidimport HangingScale from './HangingScale';
<HangingScale />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.