ant-design/components/badge/demo/status.md
Benjy Cui ff19dcc1fc feat: add Badge[status, text], close: #2715 (#2780)
* feat: add Badge[status, text], close: #2715

* feat: optimize Badge[status, text]
2016-08-20 17:43:46 +08:00

697 B

order title
7
zh-CN en-US
状态点 Status

zh-CN

用于表示状态的小圆点。

en-US

Standalone badge with status.

import { Badge } from 'antd';

ReactDOM.render(
  <div>
    <label>Status: &nbsp;</label>
    <Badge status="success" />
    <Badge status="error" />
    <Badge status="default" />
    <Badge status="processing" />
    <Badge status="warning" />
    <br />
    <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" />
  </div>,
  mountNode
);