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.
17 lines
481 B
17 lines
481 B
2 years ago
|
import React from 'react';
|
||
|
import { InputNumber, Space } from 'antd';
|
||
|
|
||
|
const onChange = (value: number) => {
|
||
|
console.log('changed', value);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space>
|
||
|
<InputNumber size="large" min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
<InputNumber min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
<InputNumber size="small" min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|