change(-1)}
disabled={value - step < min && reduceMotion}
className={buttonClass}
>
{
if (e.key === "ArrowUp") (e.preventDefault(), change(1));
if (e.key === "ArrowDown") (e.preventDefault(), change(-1));
}}
className="flex min-w-14 justify-center rounded-lg px-2 text-2xl font-medium tabular-nums leading-none text-zinc-900 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 dark:text-zinc-100"
>
{value < 0 && -}
{digits.slice(lead).map((d, i) => (
// Key from the right so a column keeps its identity as the number grows.
))}
change(1)}
disabled={value + step > max && reduceMotion}
className={buttonClass}
>
);
}