mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
11 lines
259 B
TypeScript
11 lines
259 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} />;
|
||
|
|
||
|
export default App;
|