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 component that provides a temperature control interface using a numeric input field with validation. The component should allow users to set a target temperature with proper constraints and provide programmatic controls to adjust the temperature.
Create a TemperatureController component that:
The component must maintain the temperature state internally and update it both when users interact with the numeric input and when preset buttons are clicked.
import React from 'react';
/**
* Temperature controller component with preset buttons and numeric input
* @returns A React component with temperature controls
*/
export default function TemperatureController(): React.ReactElement;Provides a React numeric input component with validation and step controls.