interface Props { value: number min?: number max?: number onChange: (value: number) => void className?: string style?: React.CSSProperties 'aria-label'?: string } export default function NumberInput({ value, min = 0, max = 999, onChange, className, style, 'aria-label': ariaLabel }: Props) { const clamp = (n: number) => Math.min(max, Math.max(min, n)) return (
{value}
) }