ant-design/components/badge/demo/status.md
2022-05-21 22:14:15 +08:00

723 B

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

zh-CN

用于表示状态的小圆点。

en-US

Standalone badge with status.

import { Badge } from 'antd';
import React from 'react';

const App: React.FC = () => (
  <>
    <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" />
  </>
);

export default App;