ant-design/components/badge/demo/dot.md

39 lines
526 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 3
title:
zh-CN: 讨嫌的小红点
en-US: Red badge
2016-03-31 09:40:55 +08:00
---
2015-09-01 13:59:07 +08:00
## zh-CN
2015-09-01 13:59:07 +08:00
没有具体的数字。
## en-US
This will simply display a red badge, without a specific count.
2017-02-13 10:55:53 +08:00
````jsx
import { Badge, Icon } from 'antd';
2015-09-01 13:59:07 +08:00
ReactDOM.render(
<div>
<Badge dot>
<Icon type="notification" />
</Badge>
<Badge dot>
<a href="#">Link something</a>
</Badge>
</div>
, mountNode);
2015-09-01 13:59:07 +08:00
````
<style>
.anticon-notification {
width: 16px;
height: 16px;
line-height: 16px;
font-size: 16px;
}
</style>