mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
15 lines
580 B
TypeScript
15 lines
580 B
TypeScript
|
import React from 'react';
|
||
|
import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
|
||
|
import { InputNumber, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space direction="vertical" style={{ width: '100%' }}>
|
||
|
<InputNumber status="error" style={{ width: '100%' }} />
|
||
|
<InputNumber status="warning" style={{ width: '100%' }} />
|
||
|
<InputNumber status="error" style={{ width: '100%' }} prefix={<ClockCircleOutlined />} />
|
||
|
<InputNumber status="warning" style={{ width: '100%' }} prefix={<ClockCircleOutlined />} />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|