A number that drags sideways, types on click, and steps with the arrow keys.
Installation
Examples
Default
Every range sweeps end to end in about 250px of drag, and the cursor hides so the screen's edge doesn't stop it. A double-click restores defaultValue. onEditingChange brackets a drag or typing, so a caller can group its changes into one undo step.
Chevrons
chevrons shows arrows on hover, hinting that the value drags.
Vertical
scrub="vertical" drags it up for more and down for less, as a dial does; its chevrons point up and down. scrub={false} leaves it to typing and the arrow keys.
Units
What format writes after the last digit reads as the unit. step sets how many decimals the value keeps.
Fixed width
minChars keeps room for that many digits, so what sits beside the value holds still as it changes.
Anatomy
Each part's data-slot, which a theme styles, is beside it. ScrubInput renders them all from its props.
bun add @roprgm/ui