import React, { useState } from 'react'; import type { InputNumberProps } from 'antd'; import { Col, InputNumber, Row, Slider, Space } from 'antd'; const IntegerStep: React.FC = () => { const [inputValue, setInputValue] = useState(1); const onChange: InputNumberProps['onChange'] = (newValue) => { setInputValue(newValue as number); }; return ( ); }; const DecimalStep: React.FC = () => { const [inputValue, setInputValue] = useState(0); const onChange: InputNumberProps['onChange'] = (value) => { if (isNaN(value as number)) { return; } setInputValue(value as number); }; return ( ); }; const App: React.FC = () => ( ); export default App;