mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
25 lines
620 B
TypeScript
25 lines
620 B
TypeScript
|
import React from 'react';
|
||
|
import { Badge, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Space>
|
||
|
<Badge status="success" />
|
||
|
<Badge status="error" />
|
||
|
<Badge status="default" />
|
||
|
<Badge status="processing" />
|
||
|
<Badge status="warning" />
|
||
|
</Space>
|
||
|
<br />
|
||
|
<Space direction="vertical">
|
||
|
<Badge status="success" text="Success" />
|
||
|
<Badge status="error" text="Error" />
|
||
|
<Badge status="default" text="Default" />
|
||
|
<Badge status="processing" text="Processing" />
|
||
|
<Badge status="warning" text="Warning" />
|
||
|
</Space>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|