mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
34 lines
873 B
TypeScript
34 lines
873 B
TypeScript
|
import React from 'react';
|
||
|
import { Avatar, Badge } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Badge count={5} status="success">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} status="warning">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} color="blue">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} color="#fa541c">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot status="success">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot status="warning">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot color="blue">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot color="#fa541c">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|