docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a React counter component with increment and decrement buttons that support auto-repeat functionality when held down.
Create a counter component that:
interface CounterProps {
min?: number;
max?: number;
defaultValue?: number;
onChange?: (value: number) => void;
}
export function Counter(props: CounterProps): React.ReactElement;Provides numeric input component with step controls and auto-repeat functionality.