mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
21 lines
439 B
TypeScript
21 lines
439 B
TypeScript
|
import React from 'react';
|
||
|
import { UserOutlined } from '@ant-design/icons';
|
||
|
import { Avatar, Badge } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<span className="avatar-item">
|
||
|
<Badge count={1}>
|
||
|
<Avatar shape="square" icon={<UserOutlined />} />
|
||
|
</Badge>
|
||
|
</span>
|
||
|
<span>
|
||
|
<Badge dot>
|
||
|
<Avatar shape="square" icon={<UserOutlined />} />
|
||
|
</Badge>
|
||
|
</span>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|