Feature Library

Steppers and two-thumb ranges

0.20 CPU ms
A still of the Steppers and two-thumb ranges demo
Still
The live demo starts when it’s in view.Drag either thumb, or press the track to move the nearer one · Tab to a thumb: arrows a step, Shift ten, Page a tenth, Home and End · Type an end in its box, Enter to set · Hold + or − to repeat · Arrows, Page keys, Home and End in a stepper’s box

A number stepper and a range with two thumbs.

What it costs a frame

0.20 ms
GPU
not used
CPU, median
0.20 ms
CPU, 95th pct
0.32 ms
Draw calls
0
Weight
Light

Measured 16 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU 0.20–0.22 ms). What ran: Measured with both thumbs dragged back and forth across the price range every frame, the histogram and the match count following, and the guests stepper stepped every few frames. Phones: tiers are being measured next.

How steadily it runs on RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference

Typical frame ?
16.77 ms
1% low ?
55 fps
Varies by ?
±0.50 ms
All metricsRTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference
p50p95p9916.05 ms18.18 ms +
How long each frame took. Most frames sit in the tall bars; a long tail to the right is hitching.

Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.

Frames

Median (p50) ?
16.77 ms
p95 ?
17.80 ms
p99 ?
18.07 ms
Slowest ?
18.41 ms
Mean ?
16.82 ms
Standard deviation ?
0.50 ms
1% low ?
55 fps
0.1% low ?
54 fps
Hitches ?
0 of 600
Over budget ?
0 of 600

Main thread

Long tasks ?
0
Long frames ?
0
Event-loop delay ?
0.0 / 0.6 / 0.7 ms

Input

No input during this run.

Memory

JavaScript heap ?
29.5 → 29.6 MB
Growth ?
+0.18 MB

Browser

JavaScript a frame ?
0.26 ms
All tasks a frame ?
0.82 ms
Layout / style ?
0.16 / 0.05 ms
Main thread busy ?
5%

Garbage collection

Collections ?
4 (1 minor, 3 major)
Pauses ?
9.8 ms in all, longest 1.3

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages

What it’s for

  1. A price, size or date-span filter in a shop or a search
  2. Guests, quantities, nights and seats
  3. A measurement with its unit (kg, m², minutes) on a form or a settings panel
  4. Any number people nudge rather than type

Pitfalls, in brief

  1. Two native range inputs stacked on one track look like a two-thumb slider until you press: the top one takes every press and the lower thumb can only be reached by keyboard.
  2. A thumb that crosses the other swaps which end it is mid-drag, and the one you hold becomes the other one.
  3. Give each thumb its own name ("Lowest price a night", "Highest price a night") and its live limits: aria-valuemax of the lower thumb is the upper thumb’s value, and the other way round.
  4. Query on release, not while dragging: onChange says final: true when a thumb settles (released, a key, a typed end).
  5. Keep the stepper’s buttons out of the tab order (the spinbutton pattern): the keyboard steps in the box.
3 more in brief
  1. A held button repeats only after a pause, so a click is never two steps, and never faster than about 20 a second: past that people overshoot and cannot read the number go by.
  2. Inset the track by half a thumb and its ring at both ends (--rgf-inset): a thumb at the very end otherwise hangs past the box, and a scroll box or a card cuts it and its focus ring.
  3. Read and write numbers in the person’s marks (locale): “1.234,5” is one thousand two hundred in German and a typing error in English.
8 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

Written for the library. Fully custom code.

WAI-ARIA Authoring Practices Guide (W3C): The spinbutton pattern (arrows, Page keys, Home and End in the box; the buttons out of the tab order).

WAI-ARIA Authoring Practices Guide (W3C): The multi-thumb slider: each thumb a slider, its limits set by the other.

stepperspinbuttonnumber fieldunitsrange slidertwo thumbsmulti-thumb sliderprice filterhistogramhold to repeatlocaledecimal commakeyboardaccessibilitydomno dependencies

Near it in the frame