You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
315 B
26 lines
315 B
4 years ago
|
---
|
||
|
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,
|
||
|
);
|
||
|
```
|