mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +08:00
26 lines
315 B
Markdown
26 lines
315 B
Markdown
|
---
|
||
|
order: 15
|
||
|
title:
|
||
|
zh-CN: 缎带
|
||
|
en-US: Ribbon
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
使用缎带型的徽标。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Use ribbon badge.
|
||
|
|
||
|
```jsx
|
||
|
import { Badge, Card } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Badge.Ribbon text="Pushes open the window">
|
||
|
<Card>And raises the spyglass.</Card>
|
||
|
</Badge.Ribbon>,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|