Component packs › Coil › Hanging Scale

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.

Hanging Scale props

PropTypeDefaultDescription
valuenumber0.420–1. Default 0.42.
labelstring"Uploading"Text before the percentage, and the accessible name. Default "Uploading".
doneLabelstring"Done"Text at 100%. Default "Done".

Methods on the ref

Use it in React

import HangingScale from './HangingScale';

<HangingScale />

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

More in Coil

Good for: Buttons.