Tactile odometer stepper with vertical digit slot transitions, press-and-hold repeat, and edge-fade masking.
"use client"; import { useState } from "react";import { RollingCounter } from "@/components/ui/rolling-counter"; export function QuantityStepper() { const [value, setValue] = useState(100); return <RollingCounter value={value} onChange={setValue} min={0} max={999} />;}Add it with the ComposeUI CLI, or copy the source manually.
valuenumberControlled numeric value animating vertically across digit columns.
defaultValuenumberInitial value when uncontrolled.
100minnumberLower bound clamping decrement holds and arrow keys.
0maxnumberUpper bound clamping increment holds and arrow keys.
9999Updated December 2026