mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
690 B
690 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
没有具体的数字。
en-US
This will simply display a red badge, without a specific count. If count equals 0, it won't display the dot.
import { Badge } from 'antd';
import { NotificationOutlined } from '@ant-design/icons';
ReactDOM.render(
<div>
<Badge dot>
<NotificationOutlined />
</Badge>
<Badge count={0} dot>
<NotificationOutlined />
</Badge>
<Badge dot>
<a href="#">Link something</a>
</Badge>
</div>,
mountNode,
);