ant-design/components/badge/demo/dot.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

516 B

order title
3
zh-CN en-US
讨嫌的小红点 Red badge

zh-CN

没有具体的数字。

en-US

This will simply display a red badge, without a specific count. If count equals 0, it won't display the dot.

import { Badge } from 'antd';
import { NotificationOutlined } from '@ant-design/icons';

export default () => (
  <>
    <Badge dot>
      <NotificationOutlined style={{ fontSize: 16 }} />
    </Badge>
    <Badge dot>
      <a href="#">Link something</a>
    </Badge>
  </>
);