mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
15 lines
554 B
TypeScript
15 lines
554 B
TypeScript
|
import React from 'react';
|
||
|
import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
|
||
|
import { Input, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space direction="vertical" style={{ width: '100%' }}>
|
||
|
<Input status="error" placeholder="Error" />
|
||
|
<Input status="warning" placeholder="Warning" />
|
||
|
<Input status="error" prefix={<ClockCircleOutlined />} placeholder="Error with prefix" />
|
||
|
<Input status="warning" prefix={<ClockCircleOutlined />} placeholder="Warning with prefix" />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|