2023-02-20 10:24:40 +08:00
|
|
|
import { AntDesignOutlined, UserOutlined } from '@ant-design/icons';
|
2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
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-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=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-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=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-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=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;
|