mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
13 lines
279 B
TypeScript
13 lines
279 B
TypeScript
import React from 'react';
|
|
import { InputNumber } from 'antd';
|
|
|
|
const onChange = (value: number) => {
|
|
console.log('changed', value);
|
|
};
|
|
|
|
const App: React.FC = () => (
|
|
<InputNumber min={1} max={10} defaultValue={3} onChange={onChange} changeOnWheel />
|
|
);
|
|
|
|
export default App;
|