mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
582 B
582 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
通常用于消息提示。
en-US
Usually used for reminders and notifications.
import { Avatar, Badge } from 'antd';
import { UserOutlined } from '@ant-design/icons';
ReactDOM.render(
<div>
<span style={{ marginRight: 24 }}>
<Badge count={1}>
<Avatar shape="square" icon={<UserOutlined />} />
</Badge>
</span>
<span>
<Badge dot>
<Avatar shape="square" icon={<UserOutlined />} />
</Badge>
</span>
</div>,
mountNode,
);