2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
2024-04-08 14:04:08 +08:00
|
|
|
import { AntDesignOutlined, UserOutlined } from '@ant-design/icons';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { Avatar, Divider, Tooltip } from 'antd';
|
2022-11-09 12:28:04 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<>
|
|
|
|
<Avatar.Group>
|
2023-12-27 17:50:24 +08:00
|
|
|
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=1" />
|
2023-01-04 17:31:31 +08:00
|
|
|
<a href="https://ant.design">
|
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
</a>
|
2022-11-09 12:28:04 +08:00
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
2023-05-18 09:40:09 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#1677ff' }} icon={<AntDesignOutlined />} />
|
2022-11-09 12:28:04 +08:00
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group maxCount={2} maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>
|
2023-12-27 17:50:24 +08:00
|
|
|
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=2" />
|
2022-11-09 12:28:04 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
2023-05-18 09:40:09 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#1677ff' }} icon={<AntDesignOutlined />} />
|
2022-11-09 12:28:04 +08:00
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group
|
|
|
|
maxCount={2}
|
|
|
|
size="large"
|
|
|
|
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}
|
|
|
|
>
|
2023-12-27 17:50:24 +08:00
|
|
|
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=3" />
|
2022-11-09 12:28:04 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
2023-05-18 09:40:09 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#1677ff' }} icon={<AntDesignOutlined />} />
|
2022-11-09 12:28:04 +08:00
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group
|
|
|
|
maxCount={2}
|
|
|
|
maxPopoverTrigger="click"
|
|
|
|
size="large"
|
|
|
|
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf', cursor: 'pointer' }}
|
|
|
|
>
|
|
|
|
<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
|
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
2023-05-18 09:40:09 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#1677ff' }} icon={<AntDesignOutlined />} />
|
2022-11-09 12:28:04 +08:00
|
|
|
</Avatar.Group>
|
2023-07-27 20:04:32 +08:00
|
|
|
<Divider />
|
|
|
|
<Avatar.Group shape="square">
|
|
|
|
<Avatar style={{ backgroundColor: '#fde3cf' }}>A</Avatar>
|
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
<Avatar style={{ backgroundColor: '#1677ff' }} icon={<AntDesignOutlined />} />
|
|
|
|
</Avatar.Group>
|
2022-11-09 12:28:04 +08:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|