Component packs › Fulcrum › Counterweight Slider

Counterweight Slider

The rail is a balance beam: slide the brass poise and the beam leans with it, while the weight swings on its hook.

Counterweight Slider is a slider from Fulcrum, a component pack with 6 balance controls: Controls that weigh things: beams tip, pans swing and mobiles rebalance. Price: $2 for the whole pack.

Built with: beam tilt from the poise, plumb hanging weight, pointer projected on the beam.

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.

Counterweight Slider props

PropTypeDefaultDescription
valuenumber
minnumber
maxnumber
stepnumber
unitstringUnit after the value, e.g. "kg".
labelstringAccessible name.
disabledboolean
onChange(value: number) => void
theme'light' | 'dark'
autoplaynumber | falseShowcase mode: moves the poise every N ms while visible.

Methods on the ref

Use it in React

import CounterweightSlider from './CounterweightSlider';

<CounterweightSlider />

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

More in Fulcrum

Good for: Skeuomorphic UI.