You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
361 B
21 lines
361 B
2 years ago
|
import React from 'react';
|
||
|
import { InputNumber } from 'antd';
|
||
|
|
||
|
const onChange = (value: string) => {
|
||
|
console.log('changed', value);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<InputNumber<string>
|
||
|
style={{ width: 200 }}
|
||
|
defaultValue="1"
|
||
|
min="0"
|
||
|
max="10"
|
||
|
step="0.00000000000001"
|
||
|
onChange={onChange}
|
||
|
stringMode
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|