mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
17 lines
384 B
TypeScript
17 lines
384 B
TypeScript
import { UserOutlined } from '@ant-design/icons';
|
|
import React from 'react';
|
|
import { Avatar, Badge, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space size={24}>
|
|
<Badge count={1}>
|
|
<Avatar shape="square" icon={<UserOutlined />} />
|
|
</Badge>
|
|
<Badge dot>
|
|
<Avatar shape="square" icon={<UserOutlined />} />
|
|
</Badge>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|