mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
06dff86287
* fix: Badge count style when customize color close #31590 close #31591 * add demo for debug * update badge demos * create ribbon.test.tsx
524 B
524 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(
<>
<Badge dot>
<NotificationOutlined style={{ fontSize: 16 }} />
</Badge>
<Badge dot>
<a href="#">Link something</a>
</Badge>
</>,
mountNode,
);