Component packs › Plumb › Ruler Zoom

Ruler Zoom

Zoom and the steel rule stretches around its anchor while half centimetres, millimetres and half millimetres fade in as they gain room.

Ruler Zoom is a zoom control from Plumb, a component pack with 6 measuring controls: Range sliders, angle pickers and loaders built from measuring tools. Price: $2 for the whole pack.

Built with: subdivisions fade in, log-space zoom spring, drag, wheel and keys.

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.

Ruler Zoom props

PropTypeDefaultDescription
valuenumberZoom as a fraction: 1 = 100 %.
minnumber
maxnumber
stopsnumber[]Button stops.
labelstringAccessible name.
onChange(zoom: number) => void
autoplaynumber | falseShowcase mode: steps the zoom every N ms while visible.

Methods on the ref

Use it in React

import RulerZoom from './RulerZoom';

<RulerZoom />

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

More in Plumb

Good for: Sliders.