Component packs › Fulcrum › Scale Compare
Every vote drops a brass weight into its pan: it lands, the pan dips and swings on its chains and the beam tips to the leader.
Scale Compare is a comparison 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: falling weights, pans swing on chains, pointer reads the lead.
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 |
|---|---|---|---|
left | ScaleCompareSide | ||
right | ScaleCompareSide | ||
interactive | boolean | Whether the pans take votes when clicked. | |
onChange | (left: number, right: number) => void | ||
theme | 'light' | 'dark' | ||
autoplay | number | false | Showcase mode: adds a vote every N ms while visible. |
readonly left: numberreadonly right: numbersetValues(left: number, right: number): voidadd(side: 'left' | 'right'): void: Adds one vote to a side.destroy(): voidimport ScaleCompare from './ScaleCompare';
<ScaleCompare />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.