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

42 lines
723 B
Markdown
Raw Normal View History

---
order: 8
title:
zh-CN: 状态点
en-US: Status
---
## zh-CN
用于表示状态的小圆点。
## en-US
Standalone badge with status.
```tsx
import { Badge } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
const App: React.FC = () => (
<>
<Badge status="success" />
<Badge status="error" />
<Badge status="default" />
<Badge status="processing" />
<Badge status="warning" />
<br />
2016-10-12 19:42:10 +08:00
<Badge status="success" text="Success" />
<br />
<Badge status="error" text="Error" />
<br />
<Badge status="default" text="Default" />
<br />
<Badge status="processing" text="Processing" />
<br />
<Badge status="warning" text="Warning" />
</>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```