mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
b6c32f6a58
* demo: update Avatar demo * ci * ci * add margin
17 lines
384 B
TypeScript
17 lines
384 B
TypeScript
import { UserOutlined } from '@ant-design/icons';
|
|
import { Avatar, Badge, Space } from 'antd';
|
|
import React from 'react';
|
|
|
|
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;
|