An input designed for numbers.
<InputNumber step={1} min={0} max={24} unit="hours" value={value} onValueChange={setValue}/>