mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +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;
|