Millimetre ruler slider with type-in

A native range input dressed as a steel rule: the marker sits exactly under the pointer, snaps to the centimetre and settles onto the tick, with an exact number field and steppers beside it.

ControlsProFrom Rung, SignatureAbout 8k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

830 words
# Millimetre ruler slider with type-in

One controls component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
A range control that feels exact and trustworthy for picking a measurement between 90 and 160 cm.

## Structure
1. head row: visible label, keyboard hint, clamp note, Or type it label, minus button, number field with cm suffix, plus button
2. ruler: canvas of ticks, row of centimetre numbers every 10, row of eleven range bands
3. marker: 2px vertical line with a value flag above it
4. ghost tick for the snapped value while dragging

The full prompt and code are part of Pro

Blocks from free pages include both at no cost.

More like this

Controls

Every controls block

Same page

More from Rung

See the page